提交 af572a69 编写于 作者: R Rafael França

Merge pull request #23773 from...

Merge pull request #23773 from wisetara/wisetara/update-docs-ActiveSupport__TestCase#assert_nothing_raised-for-pr

better docs for ActiveSupport::TestCase#assert_nothing_raised
......@@ -66,10 +66,13 @@ def test_order
alias :assert_not_respond_to :refute_respond_to
alias :assert_not_same :refute_same
# Reveals the intention that the block should not raise any exception.
# Assertion that the block should not raise an exception.
#
# Passes if evaluated code in the yielded block raises no exception.
#
# assert_nothing_raised do
# ...
# perform_service(param: 'no_exception')
# end
def assert_nothing_raised(*args)
yield
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册