Skip to content

Commit 3f29874

Browse files
Reword queue_adapter_for_test doc [ci-skip]
1 parent ed08eea commit 3f29874

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

activejob/lib/active_job/test_helper.rb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,10 @@ def after_teardown # :nodoc:
5454
queue_adapter_changed_jobs.each { |klass| klass.disable_test_adapter }
5555
end
5656

57-
# Specifies the queue adapter to use with all Active Job test helpers.
58-
#
59-
# Returns an instance of the queue adapter and defaults to
60-
# ActiveJob::QueueAdapters::TestAdapter.
61-
#
62-
# Note: The adapter provided by this method must provide some additional
63-
# methods from those expected of a standard ActiveJob::QueueAdapter
64-
# in order to be used with the Active Job test helpers. Refer to
65-
# ActiveJob::QueueAdapters::TestAdapter.
57+
# Returns a queue adapter instance to use with all Active Job test helpers.
58+
# By default, returns an instance of ActiveJob::QueueAdapters::TestAdapter.
59+
# Override this method to specify a different adapter. The adapter must
60+
# implement the same interface as ActiveJob::QueueAdapters::TestAdapter.
6661
def queue_adapter_for_test
6762
ActiveJob::QueueAdapters::TestAdapter.new
6863
end

0 commit comments

Comments
 (0)