summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2022-10-12 21:51:23 +0900
committerYusuke Endoh <[email protected]>2022-10-12 21:51:23 +0900
commit504e388525ca7a1eeac64d08731f036b2ffc7b07 (patch)
treef9b7dcf8025226fb35a32c5220bffae87a5b366e /test/ruby/test_method.rb
parent9cfc45d6e52cf4ffde0375f8d3f2271c36e9e91c (diff)
Suppress a "warning: method redefined" in test/ruby/test_method.rb
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index b1eee7381a..d2c7b6e1dd 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -1314,6 +1314,7 @@ class TestMethod < Test::Unit::TestCase
m2 = c2.instance_method(:foo)
c1.class_exec do
+ remove_method :foo
def foo
[:bar2]
end