Skip to content

Commit 4230d0d

Browse files
Fix perform_enqueued_jobs :at option doc [ci-skip]
The `:at` option will perform jobs that have been enqueued to run at the exact specified time, as well as before the specified time.
1 parent 705d515 commit 4230d0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

activejob/lib/active_job/test_helper.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,9 @@ def assert_performed_with(job: nil, args: nil, at: nil, queue: nil, priority: ni
595595
# assert_performed_jobs 1
596596
# end
597597
#
598-
# If the +:at+ option is specified, then only run jobs enqueued to run
599-
# immediately or before the given time
598+
# If the +:at+ option is specified, then only jobs that have been enqueued
599+
# to run at or before the given time will be performed. This includes jobs
600+
# that have been enqueued without a time.
600601
#
601602
# If queue_adapter_for_test is overridden to return a different adapter,
602603
# +perform_enqueued_jobs+ will merely execute the block.

0 commit comments

Comments
 (0)