mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Convention
This commit is contained in:
@@ -4,7 +4,7 @@ describe OrderCycleNotificationJob do
|
||||
let(:order_cycle) { create(:order_cycle) }
|
||||
|
||||
it "sends a mail to each supplier" do
|
||||
mail = double()
|
||||
mail = double(:mail)
|
||||
allow(mail).to receive(:deliver)
|
||||
expect(ProducerMailer).to receive(:order_cycle_report).twice.and_return(mail)
|
||||
run_job OrderCycleNotificationJob.new(order_cycle.id)
|
||||
|
||||
Reference in New Issue
Block a user