Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ActiveJob::Base.queue_adapter_name to get adapter name #30287

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions activejob/test/support/integration/test_case_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "active_support/core_ext/string/inflections"
require "support/integration/jobs_manager"

module TestCaseHelpers
Expand Down Expand Up @@ -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)
Expand Down