aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2014-10-21 00:40:59 +0530
committerVipul A M <vipulnsward@gmail.com>2014-10-21 00:40:59 +0530
commit7b87fb1b6493ff4d0373df341e61a4e8b0f8027f (patch)
tree2580fdd725a2aedc14cc2467172da6f62b3f5f0c /activejob
parent74a527cc63ef56f3d0a42cf638299958dc7cb08c (diff)
downloadrails-7b87fb1b6493ff4d0373df341e61a4e8b0f8027f.tar.gz
rails-7b87fb1b6493ff4d0373df341e61a4e8b0f8027f.tar.bz2
rails-7b87fb1b6493ff4d0373df341e61a4e8b0f8027f.zip
- Fix mentioned shortcut, to what the shortcut actually is, and that it accepts blocks for `assert_no_enqueued_jobs` and `assert_no_performed_jobs` test helpers.
- args => arguments when used in actual docs. [ci skip]
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/enqueuing.rb2
-rw-r--r--activejob/lib/active_job/test_helper.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/activejob/lib/active_job/enqueuing.rb b/activejob/lib/active_job/enqueuing.rb
index 74bcc1fa5d..cca0a2a8d6 100644
--- a/activejob/lib/active_job/enqueuing.rb
+++ b/activejob/lib/active_job/enqueuing.rb
@@ -10,7 +10,7 @@ module ActiveJob
# GlobalID::Identification instances. Arbitrary Ruby objects
# are not supported.
#
- # Returns an instance of the job class queued with args available in
+ # Returns an instance of the job class queued with arguments available in
# Job#arguments.
def perform_later(*args)
job_or_instantiate(*args).enqueue
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index af62fae9b9..ade7a94c9d 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -71,7 +71,7 @@ module ActiveJob
#
# Note: This assertion is simply a shortcut for:
#
- # assert_enqueued_jobs 0
+ # assert_enqueued_jobs 0, &block
def assert_no_enqueued_jobs(&block)
assert_enqueued_jobs 0, &block
end
@@ -130,7 +130,7 @@ module ActiveJob
#
# Note: This assertion is simply a shortcut for:
#
- # assert_performed_jobs 0
+ # assert_performed_jobs 0, &block
def assert_no_performed_jobs(&block)
assert_performed_jobs 0, &block
end