diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-06-19 15:08:13 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-06-19 15:08:13 -0500 |
commit | 7f66ee9ffe1526fedde08a41ac5f9ff14d14485f (patch) | |
tree | 8d3096a7c05b8552c8e9f555878b22b58027c1f9 | |
parent | b912bca9ac5ba062509c2ec073de27e6279a749e (diff) | |
download | rails-7f66ee9ffe1526fedde08a41ac5f9ff14d14485f.tar.gz rails-7f66ee9ffe1526fedde08a41ac5f9ff14d14485f.tar.bz2 rails-7f66ee9ffe1526fedde08a41ac5f9ff14d14485f.zip |
add documentation to AS::TestCase#assert_nothing_raised
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index 14ceb7072e..e2b46a235a 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -47,6 +47,11 @@ module ActiveSupport alias :assert_no_match :refute_match alias :assert_not_same :refute_same + # Fails if the block raises an exception. + # + # assert_nothing_raised do + # ... + # end def assert_nothing_raised(*args) yield end |