diff options
Diffstat (limited to 'spec/workers/issue_due_scheduler_worker_spec.rb')
-rw-r--r-- | spec/workers/issue_due_scheduler_worker_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/workers/issue_due_scheduler_worker_spec.rb b/spec/workers/issue_due_scheduler_worker_spec.rb index eff5855834c..7b60835fd26 100644 --- a/spec/workers/issue_due_scheduler_worker_spec.rb +++ b/spec/workers/issue_due_scheduler_worker_spec.rb @@ -14,8 +14,7 @@ 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(:perform_async).with(project1.id) - expect(MailScheduler::IssueDueWorker).to receive(:perform_async).with(project2.id) + expect(MailScheduler::IssueDueWorker).to receive(:bulk_perform_async).with([[project1.id], [project2.id]]) described_class.new.perform end |