aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/adapters
diff options
context:
space:
mode:
authorJerry D'Antonio <stumpjumper@gmail.com>2015-08-15 23:41:33 -0400
committerJerry D'Antonio <stumpjumper@gmail.com>2015-08-25 14:22:11 -0400
commit25a4155257cd463355bccb4330b0280e4110de9e (patch)
treeb58198818bb9ceadb4932e56f7c89c8b648ab4fb /activejob/test/support/integration/adapters
parente6629257f4aecfa53fd1a1a2eae34aa33f637d79 (diff)
downloadrails-25a4155257cd463355bccb4330b0280e4110de9e.tar.gz
rails-25a4155257cd463355bccb4330b0280e4110de9e.tar.bz2
rails-25a4155257cd463355bccb4330b0280e4110de9e.zip
Initial implementation of ActiveJob AsyncAdapter.
Diffstat (limited to 'activejob/test/support/integration/adapters')
-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