mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02:00
revert r52614, r52615, r52617 because they cause serious errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
508addd7e0
commit
6a533a3ecc
4 changed files with 11 additions and 69 deletions
|
@ -1280,20 +1280,6 @@ class TestModule < Test::Unit::TestCase
|
|||
undef foo
|
||||
end
|
||||
end
|
||||
|
||||
stderr = EnvUtil.verbose_warning do
|
||||
Module.new do
|
||||
def foo; end
|
||||
mod = self
|
||||
c = Class.new do
|
||||
include mod
|
||||
end
|
||||
c.new.foo
|
||||
def foo; end
|
||||
end
|
||||
end
|
||||
assert_match(/: warning: method redefined; discarding old foo/, stderr)
|
||||
assert_match(/: warning: previous definition of foo/, stderr)
|
||||
end
|
||||
|
||||
def test_protected_singleton_method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue