I\'d like to test if an email is delivered if I call a controller method with :post. I\'ll use email_spec so I tried this snipped here: http://rubydoc.info/gems/email_spec/1
Anyone using rspec +3.4 and ActiveJob to send async emails, try with:
expect { post :create, params }.to have_enqueued_job.on_queue('mailers')