Skip to content

Commit

Permalink
Fix perform_enqueued_jobs :at option doc [ci-skip]
Browse files Browse the repository at this point in the history
The `:at` option will perform jobs that have been enqueued to run at the
exact specified time, as well as before the specified time.
  • Loading branch information
jonathanhefner committed Oct 7, 2023
1 parent 705d515 commit 4230d0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions activejob/lib/active_job/test_helper.rb
Expand Up @@ -595,8 +595,9 @@ def assert_performed_with(job: nil, args: nil, at: nil, queue: nil, priority: ni
# assert_performed_jobs 1
# end
#
# If the +:at+ option is specified, then only run jobs enqueued to run
# immediately or before the given time
# If the +:at+ option is specified, then only jobs that have been enqueued
# to run at or before the given time will be performed. This includes jobs
# that have been enqueued without a time.
#
# If queue_adapter_for_test is overridden to return a different adapter,
# +perform_enqueued_jobs+ will merely execute the block.
Expand Down

0 comments on commit 4230d0d

Please sign in to comment.