aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/adapters
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-12-30 21:05:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-12-30 21:05:29 -0300
commit0d1ab3491522a6b757e864412c84406764f10b9d (patch)
tree636632992460e0c29c882f11b8fb39d87a9c93f6 /activejob/test/adapters
parent04852b875ec5c2bd5e5f8bf525b7be60682d0c27 (diff)
parent8a73f4b5b9d342a45b3c8e29a13142adbca9ab21 (diff)
downloadrails-0d1ab3491522a6b757e864412c84406764f10b9d.tar.gz
rails-0d1ab3491522a6b757e864412c84406764f10b9d.tar.bz2
rails-0d1ab3491522a6b757e864412c84406764f10b9d.zip
Merge pull request #18266 from cristianbica/ajfixes
ActiveJob testing improvements
Diffstat (limited to 'activejob/test/adapters')
-rw-r--r--activejob/test/adapters/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activejob/test/adapters/test.rb b/activejob/test/adapters/test.rb
new file mode 100644
index 0000000000..7180b38a57
--- /dev/null
+++ b/activejob/test/adapters/test.rb
@@ -0,0 +1,3 @@
+ActiveJob::Base.queue_adapter = :test
+ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true
+ActiveJob::Base.queue_adapter.perform_enqueued_at_jobs = true