Skip to content

Commit

Permalink
- Fix mentioned shortcut, to what the shortcut actually is, and that …
Browse files Browse the repository at this point in the history
…it accepts blocks for `assert_no_enqueued_jobs` and `assert_no_performed_jobs` test helpers.

- args => arguments when used in actual docs.

[ci skip]
  • Loading branch information
vipulnsward committed Oct 20, 2014
1 parent 74a527c commit 7b87fb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion activejob/lib/active_job/enqueuing.rb
Expand Up @@ -10,7 +10,7 @@ module ClassMethods
# 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
Expand Down
4 changes: 2 additions & 2 deletions activejob/lib/active_job/test_helper.rb
Expand Up @@ -71,7 +71,7 @@ def assert_enqueued_jobs(number)
#
# 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
Expand Down Expand Up @@ -130,7 +130,7 @@ def assert_performed_jobs(number)
#
# 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
Expand Down

0 comments on commit 7b87fb1

Please sign in to comment.