From 7f66ee9ffe1526fedde08a41ac5f9ff14d14485f Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Tue, 19 Jun 2012 15:08:13 -0500 Subject: add documentation to AS::TestCase#assert_nothing_raised --- activesupport/lib/active_support/test_case.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activesupport/lib/active_support/test_case.rb') 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 -- cgit v1.2.3