aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-29 08:55:09 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-30 08:12:49 +0900
commit87824ab583e986afa5c4313915e2cf610f13044e (patch)
tree91d369fcd7864d40827e65b37ccce20c31808603 /activejob
parent3c29836d1d94c0303f23768d4f2f5d3e8aea03ab (diff)
downloadrails-87824ab583e986afa5c4313915e2cf610f13044e.tar.gz
rails-87824ab583e986afa5c4313915e2cf610f13044e.tar.bz2
rails-87824ab583e986afa5c4313915e2cf610f13044e.zip
update `assert_no_performed_jobs` doc to use `assert_no_performed_jobs` method [ci skip]
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/test_helper.rb23
1 files changed, 5 insertions, 18 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index e06b98736d..3feb82d432 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -193,26 +193,13 @@ module ActiveJob
# end
#
# The block form supports filtering. If the :only option is specified,
- # then only the listed job(s) will be performed.
+ # then only the listed job(s) will not be performed.
#
- # def test_hello_job
- # assert_performed_jobs 1, only: HelloJob do
- # HelloJob.perform_later('jeremy')
- # LoggingJob.perform_later
- # end
- # end
- #
- # An array may also be specified, to support testing multiple jobs.
- #
- # def test_hello_and_logging_jobs
- # assert_nothing_raised do
- # assert_performed_jobs 2, only: [HelloJob, LoggingJob] do
- # HelloJob.perform_later('jeremy')
- # LoggingJob.perform_later('stewie')
- # RescueJob.perform_later('david')
- # end
- # end
+ # def test_no_logging
+ # assert_no_performed_jobs only: LoggingJob do
+ # HelloJob.perform_later('jeremy')
# end
+ # end
#
# Note: This assertion is simply a shortcut for:
#