Commit 459d8d65 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'sh-improve-pipelines-finder-spec' into 'master'

Fix intermittent spec failures in spec/finders/pipelines_finder_spec.rb

See merge request !12207
parents 0d5fbd95 14e7b3bf
...@@ -170,7 +170,7 @@ describe PipelinesFinder do ...@@ -170,7 +170,7 @@ describe PipelinesFinder do
context 'when order_by and sort are specified' do context 'when order_by and sort are specified' do
context 'when order_by user_id' do context 'when order_by user_id' do
let(:params) { { order_by: 'user_id', sort: 'asc' } } let(:params) { { order_by: 'user_id', sort: 'asc' } }
let!(:pipelines) { create_list(:ci_pipeline, 2, project: project, user: create(:user)) } let!(:pipelines) { Array.new(2) { create(:ci_pipeline, project: project, user: create(:user)) } }
it 'sorts as user_id: :asc' do it 'sorts as user_id: :asc' do
is_expected.to match_array(pipelines) is_expected.to match_array(pipelines)
......
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