Avoid using sample

This commit is contained in:
Shinya Maeda 2017-04-05 20:52:02 +09:00
parent dad973b59a
commit 41d064659d
1 changed files with 1 additions and 1 deletions

View File

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