aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-08-16 15:51:02 +0900
committerGitHub <noreply@github.com>2018-08-16 15:51:02 +0900
commit265eeb25592cccb1918641290c1b0259f700d02c (patch)
tree1ab079b7e2e510e99e15629db1e3fc433d472b02 /activejob/lib
parente33c3cd8ccbecaca6c6af0438956431b02cb3fb2 (diff)
parentf169752163f3e2abfead4963751989d8cdea370c (diff)
downloadrails-265eeb25592cccb1918641290c1b0259f700d02c.tar.gz
rails-265eeb25592cccb1918641290c1b0259f700d02c.tar.bz2
rails-265eeb25592cccb1918641290c1b0259f700d02c.zip
Merge pull request #33629 from bogdanvlviv/follow-33626
Add example `perform_enqueued_jobs` without block to api docs [ci skip]
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/test_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index e9b1d5c6fc..b45cc57fb0 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -373,6 +373,14 @@ module ActiveJob
# assert_performed_jobs 1
# 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,
# then only the listed job(s) will be performed.
#