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:
parent
5c16c47b78
commit
7ac29740a1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue