summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-09-09 17:05:57 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-09-09 17:05:57 +0200
commita5ce74c0aa555d81eede2d1b4b52c732d955a979 (patch)
tree865e977277bd41179a39e6f83ffb74f0cb73ee1c
parent2b3a1da6f3ceb4c78c055f14dfe93dbe818366d3 (diff)
downloadgitlab-ce-zj-patch-pipeline-finder-spec.tar.gz
Patch pipeline finder speczj-patch-pipeline-finder-spec
-rw-r--r--spec/finders/pipelines_finder_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb
index 7100266ab55..46fb5347ce2 100644
--- a/spec/finders/pipelines_finder_spec.rb
+++ b/spec/finders/pipelines_finder_spec.rb
@@ -43,9 +43,9 @@ describe PipelinesFinder do
let(:params) { { scope: 'running' } }
it 'orders in descending order on ID' do
- create(:ci_pipeline, project: project, ref: 'feature')
+ pipeline = create(:ci_pipeline, project: project, ref: 'feature')
- expect(subject.map(&:id)).to eq [3, 2, 1]
+ expect(subject).to eq [pipeline, branch_pipeline, tag_pipeline]
end
end
end