1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix for the new adapter setter

This commit is contained in:
David Heinemeier Hansson 2014-05-19 11:00:00 +02:00
parent dc20f7d4d4
commit 935f53bd5a
2 changed files with 2 additions and 2 deletions

View file

@ -3,4 +3,4 @@ $LOAD_PATH << File.dirname(__FILE__) + "/../support/delayed_job"
Delayed::Worker.delay_jobs = false
Delayed::Worker.backend = :test
ActiveJob::Base.adapter = :delayed_job
ActiveJob::Base.queue_adapter = :delayed_job

View file

@ -26,7 +26,7 @@ class AdapterTest < ActiveSupport::TestCase
end
test 'should load delayed_job adapter' do
ActiveJob::Base.adapter = :delayed_job
ActiveJob::Base.queue_adapter = :delayed_job
assert_equal ActiveJob::QueueAdapters::DelayedJobAdapter, ActiveJob::Base.queue_adapter
end