summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-14 01:38:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-14 01:38:07 +0000
commitbd255c46866f4599ab787d4748f768bbfa5842b0 (patch)
tree3f7a7a70a601ad2627294717d331c05bb257f592 /test/ruby/test_module.rb
parent01e43fb0e23c2c0c89454945a71db733fbf77409 (diff)
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
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb2
1 files changed, 1 insertions, 1 deletions
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