summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-29 01:02:17 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit7d48cb015d5590cee85fcce863e1a6bb698ab1e4 (patch)
treef99a682b1047eb56ce50002e42ccea78489415e3 /spec
parent6f83553ab6849519699a2e956d4e7a6104c1aa18 (diff)
downloadgitlab-ce-7d48cb015d5590cee85fcce863e1a6bb698ab1e4.tar.gz
Add another pipeline for spec status
Diffstat (limited to 'spec')
-rw-r--r--spec/finders/pipelines_finder_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb
index 948a33d379f..772c18b22d3 100644
--- a/spec/finders/pipelines_finder_spec.rb
+++ b/spec/finders/pipelines_finder_spec.rb
@@ -61,6 +61,11 @@ describe PipelinesFinder do
let(:params) { { status: target } }
let!(:pipeline) { create(:ci_pipeline, project: project, status: target) }
+ before do
+ exception_status = %w[running pending success failed canceled skipped] - [target]
+ create(:ci_pipeline, project: project, status: exception_status.sample)
+ end
+
it 'returns matched pipelines' do
is_expected.to eq([pipeline])
end