Permalink
Browse files

Added test to ensure that silence_warnings also returned its value

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 42093ff commit 8aa63a78b8ac238dd379108a5cb2cc5cc5418a40 @dhh dhh committed Sep 11, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/kernel.rb
@@ -18,7 +18,7 @@ def returning(value)
# Sets $VERBOSE to nil for the duration of the block and back to its original value afterwards.
#
# silence_warnings do
- # noisy_call # no warning voiced
+ # value = noisy_call # no warning voiced
# end
#
# noisy_call # warning voiced

0 comments on commit 8aa63a7

Please sign in to comment.