diff options
Diffstat (limited to 'spec/services/ci/create_pipeline_service/custom_config_content_spec.rb')
-rw-r--r-- | spec/services/ci/create_pipeline_service/custom_config_content_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb b/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb index 112b19fcbc5..5980260a08a 100644 --- a/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb +++ b/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb @@ -34,7 +34,7 @@ describe Ci::CreatePipelineService do it 'creates a pipeline using the content passed in as param' do expect(subject).to be_persisted - expect(subject.builds.map(&:name)).to eq %w[rspec custom] + expect(subject.builds.pluck(:name)).to match_array %w[rspec custom] expect(subject.config_source).to eq 'bridge_source' end @@ -59,7 +59,7 @@ describe Ci::CreatePipelineService do it 'created a pipeline using the content passed in as param and download the artifact' do expect(subject).to be_persisted - expect(subject.builds.pluck(:name)).to eq %w[rspec time custom] + expect(subject.builds.pluck(:name)).to match_array %w[rspec time custom] expect(subject.config_source).to eq 'bridge_source' end end |