summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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