From f169752163f3e2abfead4963751989d8cdea370c Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Thu, 16 Aug 2018 09:24:08 +0300 Subject: Add example `perform_enqueued_jobs` without block to api docs [ci skip] Follow up #33626 --- activejob/lib/active_job/test_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'activejob/lib/active_job') 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. # -- cgit v1.2.3