summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-03 08:08:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-03 08:08:29 +0000
commit7ac29740a11541cedf7122e28851036f790796db (patch)
tree32518ba2b89d39440a9b478af157ed3458db0b8b /test
parent5c16c47b78ab93da872942ca46c2b97e5172c40f (diff)
Suppress warning: method redefined; discarding old ==
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_symbol.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index ba3256b820..36cbf4a710 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -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