diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-05-20 12:09:24 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-05-20 12:09:24 +0200 |
commit | 7a6aa47757319fb1da6b60f820199cd6082fe8b7 (patch) | |
tree | 8dcdc5cffe9abfd787d78158a7ab7e2b7e53615f /test/cases/adapter_test.rb | |
parent | 9c8c6bf4390a60be15fa69dfdd682f82e8639bc7 (diff) | |
parent | 6d009504a02fecb822820e18abd69dd569f72e82 (diff) | |
download | rails-7a6aa47757319fb1da6b60f820199cd6082fe8b7.tar.gz rails-7a6aa47757319fb1da6b60f820199cd6082fe8b7.tar.bz2 rails-7a6aa47757319fb1da6b60f820199cd6082fe8b7.zip |
Merge pull request #31 from seuros/master
Add Que Adapter/Wrapper
Diffstat (limited to 'test/cases/adapter_test.rb')
-rw-r--r-- | test/cases/adapter_test.rb | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/test/cases/adapter_test.rb b/test/cases/adapter_test.rb index 05efdc33e9..e922750ab4 100644 --- a/test/cases/adapter_test.rb +++ b/test/cases/adapter_test.rb @@ -10,26 +10,36 @@ class AdapterTest < ActiveSupport::TestCase assert_equal ActiveJob::QueueAdapters::InlineAdapter, ActiveJob::Base.queue_adapter end - test 'should load resque adapter' do + test 'should load Delayed Job adapter' do + ActiveJob::Base.queue_adapter = :delayed_job + assert_equal ActiveJob::QueueAdapters::DelayedJobAdapter, 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 + end + + test 'should load Queue Classic adapter' do + ActiveJob::Base.queue_adapter = :queue_classic + assert_equal ActiveJob::QueueAdapters::QueueClassicAdapter, ActiveJob::Base.queue_adapter + end + + test 'should load Resque adapter' do ActiveJob::Base.queue_adapter = :resque assert_equal ActiveJob::QueueAdapters::ResqueAdapter, ActiveJob::Base.queue_adapter end - test 'should load sidekiq adapter' do + test 'should load Sidekiq adapter' do ActiveJob::Base.queue_adapter = :sidekiq assert_equal ActiveJob::QueueAdapters::SidekiqAdapter, ActiveJob::Base.queue_adapter end - test 'should load sucker punch adapter' do + test 'should load Sucker Punch adapter' do ActiveJob::Base.queue_adapter = :sucker_punch assert_equal ActiveJob::QueueAdapters::SuckerPunchAdapter, ActiveJob::Base.queue_adapter end - test 'should load delayed_job adapter' do - ActiveJob::Base.queue_adapter = :delayed_job - assert_equal ActiveJob::QueueAdapters::DelayedJobAdapter, ActiveJob::Base.queue_adapter - end - def teardown ActiveJob::Base.queue_adapter = @old_adapter end |