diff options
author | Tara Scherner de la Fuente <tara.scherner@livingsocial.com> | 2016-02-18 21:21:24 -0800 |
---|---|---|
committer | Tara Scherner de la Fuente <tara.scherner@livingsocial.com> | 2016-02-18 23:00:06 -0800 |
commit | f672464faf733b68001d6ced711bb9119c3a6f7d (patch) | |
tree | 6760f97be754a9ac4fb8ce6e58f7389f4aaa3787 | |
parent | f391840c36c6a58ab69514b2745b54046b36d67e (diff) | |
download | rails-f672464faf733b68001d6ced711bb9119c3a6f7d.tar.gz rails-f672464faf733b68001d6ced711bb9119c3a6f7d.tar.bz2 rails-f672464faf733b68001d6ced711bb9119c3a6f7d.zip |
better docs for ActiveSupport::TestCase#assert_nothing_raised
-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 |