Skip to content

Commit

Permalink
Suppress warning: method redefined.
Browse files Browse the repository at this point in the history
The warning cause test_singleton_method_added to fail.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed May 29, 2012
1 parent de7a47d commit 44ae75a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ruby/test_gc.rb
Expand Up @@ -81,6 +81,7 @@ def obj.bar() raise "obj.foo is called, but this is obj.bar" end
def test_singleton_method_added
assert_in_out_err(%w[--disable-gems], <<-EOS, [], [], "[ruby-dev:44436]")
class BasicObject
undef singleton_method_added
def singleton_method_added(mid)
raise
end
Expand Down

0 comments on commit 44ae75a

Please sign in to comment.