diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-19 05:19:37 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-19 05:19:37 -0200 |
commit | af572a69a75ef87f17b8d06bdc8a56f3a59d779a (patch) | |
tree | 6760f97be754a9ac4fb8ce6e58f7389f4aaa3787 /activesupport/lib/active_support | |
parent | f391840c36c6a58ab69514b2745b54046b36d67e (diff) | |
parent | f672464faf733b68001d6ced711bb9119c3a6f7d (diff) | |
download | rails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.tar.gz rails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.tar.bz2 rails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.zip |
Merge pull request #23773 from wisetara/wisetara/update-docs-ActiveSupport__TestCase#assert_nothing_raised-for-pr
better docs for ActiveSupport::TestCase#assert_nothing_raised
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index d9a668c0ea..4dc84e4a59 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -66,10 +66,13 @@ module ActiveSupport 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 |