mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 20:44:00 +02:00
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
This commit is contained in:
parent
01e43fb0e2
commit
bd255c4686
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue