mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user