mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #33629 from bogdanvlviv/follow-33626
Add example `perform_enqueued_jobs` without block to api docs [ci skip]
This commit is contained in:
commit
265eeb2559
1 changed files with 8 additions and 0 deletions
|
@ -373,6 +373,14 @@ module ActiveJob
|
||||||
# assert_performed_jobs 1
|
# assert_performed_jobs 1
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
# def test_perform_enqueued_jobs_without_block
|
||||||
|
# MyJob.perform_later(1, 2, 3)
|
||||||
|
#
|
||||||
|
# perform_enqueued_jobs
|
||||||
|
#
|
||||||
|
# assert_performed_jobs 1
|
||||||
|
# end
|
||||||
|
#
|
||||||
# This method also supports filtering. If the +:only+ option is specified,
|
# This method also supports filtering. If the +:only+ option is specified,
|
||||||
# then only the listed job(s) will be performed.
|
# then only the listed job(s) will be performed.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue