Use ActiveJob::Base.queue_adapter_name to get adapter name

Since 673606a, it holds adapter name.
This commit is contained in:
yuuji.yaginuma 2017-08-17 06:53:51 +09:00
parent 692fab26b1
commit 0868cac0ef

@ -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 @@ def clear_jobs
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)