diff options
author | Tamir Duberstein <tamird@gmail.com> | 2015-03-11 14:57:13 -0700 |
---|---|---|
committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-11 15:58:41 -0700 |
commit | fb26645c1ed9d3b74ec421839c9732706f74f5c0 (patch) | |
tree | dd2168bf01af4a55ec73353e6489d9e727d0710d /activejob/test/support | |
parent | c696cffcf62e29a1214b9bcf6353d047e4fbfef2 (diff) | |
download | rails-fb26645c1ed9d3b74ec421839c9732706f74f5c0.tar.gz rails-fb26645c1ed9d3b74ec421839c9732706f74f5c0.tar.bz2 rails-fb26645c1ed9d3b74ec421839c9732706f74f5c0.zip |
`ActiveJob::QueueAdapters::*` are no longer singletons
Diffstat (limited to 'activejob/test/support')
-rw-r--r-- | activejob/test/support/integration/test_case_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/support/integration/test_case_helpers.rb b/activejob/test/support/integration/test_case_helpers.rb index ee2f6aebea..fe075cf7c7 100644 --- a/activejob/test/support/integration/test_case_helpers.rb +++ b/activejob/test/support/integration/test_case_helpers.rb @@ -27,8 +27,8 @@ module TestCaseHelpers jobs_manager.clear_jobs end - def adapter_is?(adapter) - ActiveJob::Base.queue_adapter.name.split("::").last.gsub(/Adapter$/, '').underscore==adapter.to_s + def adapter_is?(adapter_class_symbol) + ActiveJob::Base.queue_adapter.class.name.split("::").last.gsub(/Adapter$/, '').underscore == adapter_class_symbol.to_s end def wait_for_jobs_to_finish_for(seconds=60) |