diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 05:00:51 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 05:00:51 +0000 |
commit | 42093fff9422ef66b595ef55a1e28df01a6fd2fc (patch) | |
tree | f5fc41f1476417bbc10dbee3e9cfc8ff8f2424e0 /activesupport | |
parent | 3cf7a0a46037f32b95b5ffb358cb898233d5c5db (diff) | |
download | rails-42093fff9422ef66b595ef55a1e28df01a6fd2fc.tar.gz rails-42093fff9422ef66b595ef55a1e28df01a6fd2fc.tar.bz2 rails-42093fff9422ef66b595ef55a1e28df01a6fd2fc.zip |
Added test to ensure that silence_warnings also returned its value
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |