diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-05-19 10:54:30 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-05-19 10:54:30 +0200 |
commit | e06e64efd3ebf6e3351cd490f55273bd2e756b0b (patch) | |
tree | ca007bcb42cf7a397c95de1926170ca9116c200e /test/cases/adapter_test.rb | |
parent | fd1e61adfc40275fe23fdcbc7796f7a72bf12fa3 (diff) | |
parent | 6e18a7469fb43714c8a37e6cf6ff94280cd12465 (diff) | |
download | rails-e06e64efd3ebf6e3351cd490f55273bd2e756b0b.tar.gz rails-e06e64efd3ebf6e3351cd490f55273bd2e756b0b.tar.bz2 rails-e06e64efd3ebf6e3351cd490f55273bd2e756b0b.zip |
Merge pull request #9 from cristianbica/delayed_job_adapter
Implemented delayed_job support
Diffstat (limited to 'test/cases/adapter_test.rb')
-rw-r--r-- | test/cases/adapter_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cases/adapter_test.rb b/test/cases/adapter_test.rb index eac92fb27d..c51130bc15 100644 --- a/test/cases/adapter_test.rb +++ b/test/cases/adapter_test.rb @@ -25,6 +25,11 @@ class AdapterTest < ActiveSupport::TestCase assert_equal ActiveJob::QueueAdapters::SuckerPunchAdapter, ActiveJob::Base.queue_adapter end + test 'should load delayed_job adapter' do + ActiveJob::Base.adapter = :delayed_job + assert_equal ActiveJob::QueueAdapters::DelayedJobAdapter, ActiveJob::Base.queue_adapter + end + def teardown ActiveJob::Base.queue_adapter = @old_adapter end |