summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-05 20:52:02 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit41d064659d24d979ab8c1dd282e2162eae318000 (patch)
tree65e4fa008f4e3c47767d7504a5d03e294e105490 /spec/finders
parentdad973b59af297723c20726ef129d0e90b0bca87 (diff)
downloadgitlab-ce-41d064659d24d979ab8c1dd282e2162eae318000.tar.gz
Avoid using sample
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/pipelines_finder_spec.rb2
1 files changed, 1 insertions, 1 deletions
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