diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-06 23:06:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-06 23:06:13 +0000 |
commit | 76e3af82d5e6c1a612e6b173ddb326b2e866a74e (patch) | |
tree | 1496012e199d67b99dc4ca5e0d5aec077ab14da0 /test/ruby/test_object.rb | |
parent | 973f84ef558b6869ecc1e017cbe48b197726c7bf (diff) |
Warn redefinitions of some methods on Object
[Bug #5473] [Bug #14670] [Bug #15382]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r-- | test/ruby/test_object.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index c25dcf9c37..28e07162d7 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -883,6 +883,7 @@ class TestObject < Test::Unit::TestCase ['ArgumentError.new("bug5473")', 'ArgumentError, "bug5473"', '"bug5473"'].each do |code| exc = code[/\A[A-Z]\w+/] || 'RuntimeError' assert_separately([], <<-SRC) + $VERBOSE = nil class ::Object def method_missing(m, *a, &b) raise #{code} |