diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/kernel_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/kernel_test.rb b/activesupport/test/core_ext/kernel_test.rb index d757362243..7d1565157a 100644 --- a/activesupport/test/core_ext/kernel_test.rb +++ b/activesupport/test/core_ext/kernel_test.rb @@ -16,4 +16,8 @@ class KernelTest < Test::Unit::TestCase assert_equal old_verbose, $VERBOSE end end + + def test_silence_warnings_with_return_value + assert_equal 1, silence_warnings { 1 } + end end |