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
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
......
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