From 41d064659d24d979ab8c1dd282e2162eae318000 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 5 Apr 2017 20:52:02 +0900 Subject: Avoid using sample --- spec/finders/pipelines_finder_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb index 276a680b457..3b04100ff57 100644 --- a/spec/finders/pipelines_finder_spec.rb +++ b/spec/finders/pipelines_finder_spec.rb @@ -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 -- cgit v1.2.1