Commit 7d48cb01 authored by Shinya Maeda's avatar Shinya Maeda

Add another pipeline for spec status

parent 6f83553a
...@@ -61,6 +61,11 @@ describe PipelinesFinder do ...@@ -61,6 +61,11 @@ describe PipelinesFinder do
let(:params) { { status: target } } let(:params) { { status: target } }
let!(:pipeline) { create(:ci_pipeline, project: project, 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 it 'returns matched pipelines' do
is_expected.to eq([pipeline]) is_expected.to eq([pipeline])
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment