Ignore ordering in IssueDueSchedulerWorker spec

This commit is contained in:
Sean McGivern 2018-04-20 09:41:10 +02:00
parent 1999ed7093
commit 5051ca971c
1 changed files with 3 additions and 1 deletions

View File

@ -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