aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/adapters/async.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/adapters/async.rb')
-rw-r--r--activejob/test/adapters/async.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activejob/test/adapters/async.rb b/activejob/test/adapters/async.rb
new file mode 100644
index 0000000000..5fcfb89566
--- /dev/null
+++ b/activejob/test/adapters/async.rb
@@ -0,0 +1,4 @@
+require 'active_job/async_job'
+
+ActiveJob::Base.queue_adapter = :async
+ActiveJob::AsyncJob.perform_immediately!