diff options
Diffstat (limited to 'spec/models/merge_request')
-rw-r--r-- | spec/models/merge_request/cleanup_schedule_spec.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/models/merge_request/cleanup_schedule_spec.rb b/spec/models/merge_request/cleanup_schedule_spec.rb index 9c50b64f2bd..1f1f33db5ed 100644 --- a/spec/models/merge_request/cleanup_schedule_spec.rb +++ b/spec/models/merge_request/cleanup_schedule_spec.rb @@ -111,12 +111,13 @@ RSpec.describe MergeRequest::CleanupSchedule do let!(:cleanup_schedule_7) { create(:merge_request_cleanup_schedule, :failed, scheduled_at: 5.days.ago) } it 'returns records that are scheduled before or on current time and unstarted (ordered by scheduled first)' do - expect(described_class.scheduled_and_unstarted).to eq([ - cleanup_schedule_2, - cleanup_schedule_1, - cleanup_schedule_5, - cleanup_schedule_4 - ]) + expect(described_class.scheduled_and_unstarted).to eq( + [ + cleanup_schedule_2, + cleanup_schedule_1, + cleanup_schedule_5, + cleanup_schedule_4 + ]) end end |