提交 7b87fb1b 编写于 作者: V Vipul A M

- Fix mentioned shortcut, to what the shortcut actually is, and that it...

- 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]
上级 74a527cc
......@@ -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
......
......@@ -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
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册