We want to deliver emails in the background of all our Rails apps. Other long-running processes that don't need to block the HTTP request/response cycle can also be done in the background.
RSpec.configure do |config|
config.around(:each, type: :feature) do |example|
delay_jobs = Delayed::Worker.delay_jobs
Delayed::Worker.delay_jobs = false
Delayed::Worker.delay_jobs = delay_jobs
Updated issue description with code from http://robots.thoughtbot.com/post/40526170520/process-jobs-inline-when-running-acceptance-tests
Done in #166.