diff options
author | Sean McGivern <sean@gitlab.com> | 2018-04-20 10:41:10 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-04-20 10:41:10 +0300 |
commit | 5051ca971c9196441725bf2b758f341294fc2381 (patch) | |
tree | f19d04f67b952db3f03b767e37d8e078b248adfb /spec | |
parent | 1999ed709363fb9b9f216c1052edbb91bdabcff1 (diff) |
Ignore ordering in IssueDueSchedulerWorker spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/issue_due_scheduler_worker_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/workers/issue_due_scheduler_worker_spec.rb b/spec/workers/issue_due_scheduler_worker_spec.rb index 7b60835fd26..2710267d384 100644 --- a/spec/workers/issue_due_scheduler_worker_spec.rb +++ b/spec/workers/issue_due_scheduler_worker_spec.rb @@ -14,7 +14,9 @@ describe IssueDueSchedulerWorker do create(:issue, :closed, project: project_closed_issue, due_date: Date.tomorrow) create(:issue, :opened, project: project_issue_due_another_day, due_date: Date.today) - expect(MailScheduler::IssueDueWorker).to receive(:bulk_perform_async).with([[project1.id], [project2.id]]) + expect(MailScheduler::IssueDueWorker).to receive(:bulk_perform_async) do |args| + expect(args).to match_array([[project1.id], [project2.id]]) + end described_class.new.perform end |