summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_pattern_matching.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 0af5e3ad97..6aa7c82361 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -94,12 +94,15 @@ class TestPatternMatching < Test::Unit::TestCase
end
assert_block do
+ verbose, $VERBOSE = $VERBOSE, nil # suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!"
eval(%q{
case true
in a
a
end
})
+ ensure
+ $VERBOSE = verbose
end
assert_block do