diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-06-12 11:14:42 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-06-12 11:17:28 +0300 |
commit | b36d4da340fe81827601f9c192aefb2982cbcefb (patch) | |
tree | bcabfe0727216ba16eb7e7878fb829bc456c22df /test | |
parent | 694b562080a7b1473d20c743877481e13d51c421 (diff) | |
download | rails-b36d4da340fe81827601f9c192aefb2982cbcefb.tar.gz rails-b36d4da340fe81827601f9c192aefb2982cbcefb.tar.bz2 rails-b36d4da340fe81827601f9c192aefb2982cbcefb.zip |
Implemented :qu adapter
Diffstat (limited to 'test')
-rw-r--r-- | test/adapters/qu.rb | 3 | ||||
-rw-r--r-- | test/cases/adapter_test.rb | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/adapters/qu.rb b/test/adapters/qu.rb new file mode 100644 index 0000000000..7728c843b4 --- /dev/null +++ b/test/adapters/qu.rb @@ -0,0 +1,3 @@ +require 'qu-immediate' + +ActiveJob::Base.queue_adapter = :qu diff --git a/test/cases/adapter_test.rb b/test/cases/adapter_test.rb index 703058dacb..7f6f4c1159 100644 --- a/test/cases/adapter_test.rb +++ b/test/cases/adapter_test.rb @@ -14,6 +14,11 @@ class AdapterTest < ActiveSupport::TestCase assert_equal ActiveJob::QueueAdapters::DelayedJobAdapter, ActiveJob::Base.queue_adapter end + test 'should load Qu adapter' do + ActiveJob::Base.queue_adapter = :qu + assert_equal ActiveJob::QueueAdapters::QuAdapter, ActiveJob::Base.queue_adapter + end + test 'should load Que adapter' do ActiveJob::Base.queue_adapter = :que assert_equal ActiveJob::QueueAdapters::QueAdapter, ActiveJob::Base.queue_adapter |