aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/adapters/async.rb
blob: 44ab98437aafef3be7baaf8068b7dcf83b01e46a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
module AsyncJobsManager
  def setup
    ActiveJob::Base.queue_adapter = :async
    ActiveJob::Base.queue_adapter.immediate = false
  end

  def clear_jobs
    ActiveJob::Base.queue_adapter.shutdown
  end
end