Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-28 19:02:17 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-02 20:11:51 +0300
commit7d48cb015d5590cee85fcce863e1a6bb698ab1e4 (patch)
treef99a682b1047eb56ce50002e42ccea78489415e3 /spec/finders
parent6f83553ab6849519699a2e956d4e7a6104c1aa18 (diff)
Add another pipeline for spec status
Diffstat (limited to 'spec/finders')
-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