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

build_service_spec.rb « clusters « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da0cb42b3a11a0e5e481651760a18708fde96b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

require 'spec_helper'

describe Clusters::BuildService do
  describe '#execute' do
    subject { described_class.new(cluster_subject).execute }

    describe 'when cluster subject is a project' do
      let(:cluster_subject) { build(:project) }

      it 'sets the cluster_type to project_type' do
        is_expected.to be_project_type
      end
    end

    describe 'when cluster subject is a group' do
      let(:cluster_subject) { build(:group) }

      it 'sets the cluster_type to group_type' do
        is_expected.to be_group_type
      end
    end
  end
end