diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-29 01:02:17 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | 7d48cb015d5590cee85fcce863e1a6bb698ab1e4 (patch) | |
tree | f99a682b1047eb56ce50002e42ccea78489415e3 | |
parent | 6f83553ab6849519699a2e956d4e7a6104c1aa18 (diff) | |
download | gitlab-ce-7d48cb015d5590cee85fcce863e1a6bb698ab1e4.tar.gz |
Add another pipeline for spec status
-rw-r--r-- | spec/finders/pipelines_finder_spec.rb | 5 |
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 |