aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-17 06:53:51 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-17 06:55:55 +0900
commit0868cac0ef400a2eb83398e03a468a61924109cb (patch)
treeec75c7224bd04d4fe1e05d9c72f4036decd17e6e /activejob/test/support
parent692fab26b142c724f0b824db5029c70a88676808 (diff)
downloadrails-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/support')
-rw-r--r--activejob/test/support/integration/test_case_helpers.rb4
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)