Welcome to mirror list, hosted at ThFree Co, Russian Federation.

implicit_authorization_spec.rb « agents « clusters « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69aa55a350e4d7f181d9a6ba15caa2d33e81f094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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.project).to eq(agent.project) }
  it { expect(subject.config).to be_nil }
end