提交 0868cac0 编写于 作者: Y yuuji.yaginuma

Use `ActiveJob::Base.queue_adapter_name` to get adapter name

Since 673606a9, it holds adapter name.
上级 692fab26
# 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册