Commit 78f0ed31 authored by Douwe Maan's avatar Douwe Maan

Fix tests

parent fe4d32ad
......@@ -16,6 +16,8 @@ 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