diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-01 13:56:41 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-01 13:56:41 +0800 |
commit | dd01f3a748ea8be2af75ef03ff203efe1b8f5962 (patch) | |
tree | 6c3ec4dd7ef0ed7c359e08767b886cb8716b927c /spec/services/ci/process_pipeline_service_spec.rb | |
parent | f3b02b9e6e79f178b92a65b5cd598a4733b570bd (diff) | |
download | gitlab-ce-dd01f3a748ea8be2af75ef03ff203efe1b8f5962.tar.gz |
Should use eq because we want orders
Diffstat (limited to 'spec/services/ci/process_pipeline_service_spec.rb')
-rw-r--r-- | spec/services/ci/process_pipeline_service_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/services/ci/process_pipeline_service_spec.rb b/spec/services/ci/process_pipeline_service_spec.rb index b6c23002dda..95bdb43db05 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 |