mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
instance_methods etc should not include undef'ed method names; based on a patch from @cremno; fix #2613
This commit is contained in:
@@ -469,6 +469,7 @@ assert('Module#undef_method', '15.2.2.4.42') do
|
||||
assert_true Test4UndefMethod::Parent.new.respond_to?(:hello)
|
||||
assert_false Test4UndefMethod::Child.new.respond_to?(:hello)
|
||||
assert_false Test4UndefMethod::GrandChild.new.respond_to?(:hello)
|
||||
assert_false Test4UndefMethod::Child.instance_methods(false).include? :hello
|
||||
end
|
||||
|
||||
# Not ISO specified
|
||||
|
||||
Reference in New Issue
Block a user