diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-08-17 06:53:51 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-08-17 06:55:55 +0900 |
commit | 0868cac0ef400a2eb83398e03a468a61924109cb (patch) | |
tree | ec75c7224bd04d4fe1e05d9c72f4036decd17e6e /activejob/test | |
parent | 692fab26b142c724f0b824db5029c70a88676808 (diff) | |
download | rails-0868cac0ef400a2eb83398e03a468a61924109cb.tar.gz rails-0868cac0ef400a2eb83398e03a468a61924109cb.tar.bz2 rails-0868cac0ef400a2eb83398e03a468a61924109cb.zip |
Use `ActiveJob::Base.queue_adapter_name` to get adapter name
Since 673606a, it holds adapter name.
Diffstat (limited to 'activejob/test')
-rw-r--r-- | activejob/test/support/integration/test_case_helpers.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activejob/test/support/integration/test_case_helpers.rb b/activejob/test/support/integration/test_case_helpers.rb index 9629876a6d..f02a32a38e 100644 --- a/activejob/test/support/integration/test_case_helpers.rb +++ b/activejob/test/support/integration/test_case_helpers.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "active_support/core_ext/string/inflections" require "support/integration/jobs_manager" module TestCaseHelpers @@ -30,8 +29,7 @@ module TestCaseHelpers end def adapter_is?(*adapter_class_symbols) - adapter = ActiveJob::Base.queue_adapter.class.name.demodulize.chomp("Adapter").underscore - adapter_class_symbols.map(&:to_s).include? adapter + adapter_class_symbols.map(&:to_s).include? ActiveJob::Base.queue_adapter_name end def wait_for_jobs_to_finish_for(seconds = 60) |