debian-mirror-gitlab/spec/models/clusters/agents/implicit_authorization_spec.rb
2022-11-25 23:54:43 +05:30

14 lines
410 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Clusters::Agents::ImplicitAuthorization do
let_it_be(:agent) { create(:cluster_agent) }
subject { described_class.new(agent: agent) }
it { expect(subject.agent).to eq(agent) }
it { expect(subject.agent_id).to eq(agent.id) }
it { expect(subject.config_project).to eq(agent.project) }
it { expect(subject.config).to eq({}) }
end