Suppress warning: method redefined; discarding old ==
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c16c47b78
commit
7ac29740a1
@ -518,6 +518,7 @@ class TestSymbol < Test::Unit::TestCase
|
||||
def test_eq_can_be_redefined
|
||||
assert_in_out_err([], <<-RUBY, ["foo"], [])
|
||||
class Symbol
|
||||
remove_method :==
|
||||
def ==(obj)
|
||||
"foo"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user