From 2ff56cc9b4dd3566277d2201774f80fef9aefdde Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Mar 2013 11:29:27 +0000 Subject: proc.c: revert r39224 * proc.c (mnew): revert r39224. [ruby-core:53038] [Bug #7988] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 7de4479a2b..ef4943c345 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -550,6 +550,7 @@ class TestMethod < Test::Unit::TestCase def test_prepended bug7836 = '[ruby-core:52160] [Bug #7836]' + bug7988 = '[ruby-core:53038] [Bug #7988]' m = Module.new { def foo end @@ -559,7 +560,7 @@ class TestMethod < Test::Unit::TestCase end prepend m } - assert_equal(c, c.instance_method(:foo).owner, bug7836) + assert_raise(NameError, bug7988) {Module.new{prepend m}.instance_method(:bar)} end def test_gced_bmethod -- cgit v1.2.3