1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
naruse 2017-07-03 08:08:29 +00:00
parent 5c16c47b78
commit 7ac29740a1

View file

@ -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