Skip to content

Commit 705d515

Browse files
Reword adapter caveat for perform_enqueued_jobs [ci-skip]
1 parent 3f29874 commit 705d515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activejob/lib/active_job/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ def assert_performed_with(job: nil, args: nil, at: nil, queue: nil, priority: ni
598598
# If the +:at+ option is specified, then only run jobs enqueued to run
599599
# immediately or before the given time
600600
#
601-
# If an adapter other than the test adapter is in use, this method just yields.
602-
# See queue_adapter_for_test for more information.
601+
# If queue_adapter_for_test is overridden to return a different adapter,
602+
# +perform_enqueued_jobs+ will merely execute the block.
603603
def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
604604
return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
605605

0 commit comments

Comments
 (0)