diff --git a/spec/jobs/order_cycle_notification_job_spec.rb b/spec/jobs/order_cycle_notification_job_spec.rb index 4341035340..674bdbdd24 100644 --- a/spec/jobs/order_cycle_notification_job_spec.rb +++ b/spec/jobs/order_cycle_notification_job_spec.rb @@ -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)