Suppress a "warning: method redefined" in test/ruby/test_method.rb
This commit is contained in:
parent
9cfc45d6e5
commit
504e388525
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user