Commit 61e5f27f authored by Valery Sizov's avatar Valery Sizov

fix specs

parent b84ee8d1
This diff is collapsed.
......@@ -15,8 +15,10 @@ describe AdminEmailsWorker do
end
it "sends email to subscribed users" do
AdminEmailsWorker.new.perform(recipient_id, 'subject', 'body')
expect(ActionMailer::Base.deliveries.count).to eql 2
perform_enqueued_jobs do
AdminEmailsWorker.new.perform(recipient_id, 'subject', 'body')
expect(ActionMailer::Base.deliveries.count).to eql 2
end
end
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