I am using the devise-async gem to send my devise emails asynchronously - using Resque.
I am doing some simple RSpec controller tests to make sure the, say, forgotten password is being sent, by inspecting the ActionMailer::Base.deliveries array.
This used to work before I started using the devise-async gem. How can I "send" the emails on the queue immediately, so that they end up in ActionMailer::Base.deliveries?
For example - when I used delayed_job to send them asynchronously (not using the devise-async gem), I could add this to my devise initializer:
Delayed::Worker.delay_jobs = !Rails.env.test?
Which would deliver emails straight away to make it easier to test. So - is there a similar technique I can use when using devise-async?