aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-09-05 06:35:19 +0000
committerAbdelkader Boudih <terminale@gmail.com>2014-09-05 06:35:19 +0000
commitfbe116a2485b6db3566d3166adc2ce80525cbfbf (patch)
tree6e05886eb41a11ad5d0459f1a7d6313ed7041150 /activejob/lib
parent9f52f04b5a81e1092cfcc9c0a400813e27b4d1a1 (diff)
downloadrails-fbe116a2485b6db3566d3166adc2ce80525cbfbf.tar.gz
rails-fbe116a2485b6db3566d3166adc2ce80525cbfbf.tar.bz2
rails-fbe116a2485b6db3566d3166adc2ce80525cbfbf.zip
correct rdoc [ci skip]
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/test_helper.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index 767619097c..fa0576669e 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -21,9 +21,9 @@ module ActiveJob
#
# def test_jobs
# assert_enqueued_jobs 0
- # HelloJob.enqueue('david')
+ # HelloJob.perform_later('david')
# assert_enqueued_jobs 1
- # HelloJob.enqueue('abdelkader')
+ # HelloJob.perform_later('abdelkader')
# assert_enqueued_jobs 2
# end
#
@@ -32,12 +32,12 @@ module ActiveJob
#
# def test_jobs_again
# assert_enqueued_jobs 1 do
- # HelloJob.enqueue('cristian')
+ # HelloJob.perform_later('cristian')
# end
#
# assert_enqueued_jobs 2 do
- # HelloJob.enqueue('aaron')
- # HelloJob.enqueue('rafael')
+ # HelloJob.perform_later('aaron')
+ # HelloJob.perform_later('rafael')
# end
# end
def assert_enqueued_jobs(number)
@@ -57,7 +57,7 @@ module ActiveJob
#
# def test_jobs
# assert_no_enqueued_jobs
- # HelloJob.enqueue('jeremy')
+ # HelloJob.perform_later('jeremy')
# assert_enqueued_jobs 1
# end
#
@@ -80,9 +80,9 @@ module ActiveJob
#
# def test_jobs
# assert_performed_jobs 0
- # HelloJob.enqueue('xavier')
+ # HelloJob.perform_later('xavier')
# assert_performed_jobs 1
- # HelloJob.enqueue('yves')
+ # HelloJob.perform_later('yves')
# assert_performed_jobs 2
# end
#
@@ -91,12 +91,12 @@ module ActiveJob
#
# def test_jobs_again
# assert_performed_jobs 1 do
- # HelloJob.enqueue('robin')
+ # HelloJob.perform_later('robin')
# end
#
# assert_performed_jobs 2 do
- # HelloJob.enqueue('carlos')
- # HelloJob.enqueue('sean')
+ # HelloJob.perform_later('carlos')
+ # HelloJob.perform_later('sean')
# end
# end
def assert_performed_jobs(number)
@@ -116,7 +116,7 @@ module ActiveJob
#
# def test_jobs
# assert_no_performed_jobs
- # HelloJob.enqueue('matthew')
+ # HelloJob.perform_later('matthew')
# assert_performed_jobs 1
# end
#
@@ -139,7 +139,7 @@ module ActiveJob
#
# def assert_enqueued_job
# assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low') do
- # MyJob.enqueue(1,2,3)
+ # MyJob.perform_later(1,2,3)
# end
# end
def assert_enqueued_with(args = {}, &_block)
@@ -159,7 +159,7 @@ module ActiveJob
#
# def test_assert_performed_with
# assert_performed_with(job: MyJob, args: [1,2,3], queue: 'high') do
- # MyJob.enqueue(1,2,3)
+ # MyJob.perform_later(1,2,3)
# end
# end
def assert_performed_with(args = {}, &_block)