RSpec.configure do |config|
  config.around(immediate_delayed_job_work_off: true) do |example|
    old_dj = Delayed::Worker.delay_jobs
    Delayed::Worker.delay_jobs = false
    example.run
    Delayed::Worker.delay_jobs = old_dj
  end
end

Add spec/support file to make DJ work inline
Add spec/support file to make DJ work inline

If you specify ``immediate_delayed_job_work_off: true`` in the metadata for your spec then DJ will work inline.  Otherwise it will do whatever the app is configured for (which is currently not to inline perform things).
