diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 8fee163996..2e1940f0b7 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -17,8 +17,11 @@ class TestBeginEndBlock < Test::Unit::TestCase end def test_endinmethod - assert_raises(SyntaxError) do + verbose, $VERBOSE = $VERBOSE, nil + assert_nothing_raised(SyntaxError) do eval("def foo; END {}; end") end + ensure + $VERBOSE = verbose end end |