Convention

This commit is contained in:
Rohan Mitchell
2015-04-29 15:56:27 +10:00
parent 3565548e91
commit 73376b30e2

View File

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