aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/adapters/async.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/support/integration/adapters/async.rb')
-rw-r--r--activejob/test/support/integration/adapters/async.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/activejob/test/support/integration/adapters/async.rb b/activejob/test/support/integration/adapters/async.rb
new file mode 100644
index 0000000000..42beb12b1f
--- /dev/null
+++ b/activejob/test/support/integration/adapters/async.rb
@@ -0,0 +1,9 @@
+module AsyncJobsManager
+ def setup
+ ActiveJob::Base.queue_adapter = :async
+ end
+
+ def clear_jobs
+ ActiveJob::AsyncJob::QUEUES.clear
+ end
+end