diff --git a/spec/services/ci/process_pipeline_service_spec.rb b/spec/services/ci/process_pipeline_service_spec.rb index b6c23002dda3450724d2da22fb40d8e26d5581f4..95bdb43db055a21fb4e584fe6f69609af695978e 100644 --- a/spec/services/ci/process_pipeline_service_spec.rb +++ b/spec/services/ci/process_pipeline_service_spec.rb @@ -245,8 +245,7 @@ describe Ci::ProcessPipelineService, services: true do end it 'starts from the second stage' do - expect(builds.map(&:status)).to contain_exactly( - 'skipped', 'pending', 'created') + expect(builds.map(&:status)).to eq(%w[skipped pending created]) end end @@ -258,14 +257,12 @@ describe Ci::ProcessPipelineService, services: true do end it 'skips second stage and continues on third stage' do - expect(builds.map(&:status)).to contain_exactly( - 'pending', 'created', 'created') + expect(builds.map(&:status)).to eq(%w[pending created created]) builds.first.success builds.each(&:reload) - expect(builds.map(&:status)).to contain_exactly( - 'success', 'skipped', 'pending') + expect(builds.map(&:status)).to eq(%w[success skipped pending]) end end