diff --git a/activesupport/test/core_ext/kernel_test.rb b/activesupport/test/core_ext/kernel_test.rb
index <HASH>..<HASH> 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
Added test to ensure that silence_warnings also returned its value

git-svn-id: <URL>