Commit 4af98476 authored by Douwe Maan's avatar Douwe Maan

Fix specs

parent 78f0ed31
......@@ -16,8 +16,6 @@ describe AdminEmailsWorker do
it "sends email to subscribed users" do
AdminEmailsWorker.new.perform(recipient_id, 'subject', 'body')
expect(Sidekiq::Extensions::DelayedMailer.jobs.count).to eql 2
Sidekiq::Extensions::DelayedMailer.drain
expect(ActionMailer::Base.deliveries.count).to eql 2
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment