From bd255c46866f4599ab787d4748f768bbfa5842b0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Feb 2013 01:38:07 +0000 Subject: [PATCH] vm_method.c: fix method_removed * vm_method.c: call method_removed hook on called class, not on prepending iclass. [ruby-core:52207] [Bug #7843] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 +- test/ruby/test_module.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2effc452a1..1f8afcf7ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ Thu Feb 14 10:30:41 2013 Nobuyoshi Nakada * vm_method.c: call method_removed hook on called class, not on - prepending iclass. + prepending iclass. [ruby-core:52207] [Bug #7843] Thu Feb 14 10:05:57 2013 Eric Hodel diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 7723bc16be..6fbf3af2e3 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -1397,7 +1397,7 @@ class TestModule < Test::Unit::TestCase c.singleton_class.class_eval do define_method(:method_removed) {|id| removed = id} end - assert_nothing_raised(NoMethodError, NameError) do + assert_nothing_raised(NoMethodError, NameError, '[Bug #7843]') do c.class_eval do remove_method(:foo) end