summaryrefslogtreecommitdiff
path: root/test/ruby/test_refinement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_refinement.rb')
-rw-r--r--test/ruby/test_refinement.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb
index 99987da..60d0c9a 100644
--- a/test/ruby/test_refinement.rb
+++ b/test/ruby/test_refinement.rb
@@ -503,8 +503,10 @@ class TestRefinement < Test::Unit::TestCase
end
class C
- def foo
- "redefined"
+ EnvUtil.suppress_warning do
+ def foo
+ "redefined"
+ end
end
end
end