Commit 41d06465 authored by Shinya Maeda's avatar Shinya Maeda

Avoid using sample

parent dad973b5
......@@ -67,7 +67,7 @@ describe PipelinesFinder do
before do
exception_status = HasStatus::AVAILABLE_STATUSES - [target]
create(:ci_pipeline, project: project, status: exception_status.sample)
create(:ci_pipeline, project: project, status: exception_status.first)
end
it 'returns matched pipelines' do
......
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