summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-10-20 11:11:26 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-10-20 11:11:26 +0900
commit69ba4f0ed5e7ce179a01316dea753042dfcdfd77 (patch)
tree59a392075f89292b8a2d370953a6f662da4cda50 /test/t
parentcee3dc58d6993c80256b1d2aba5abf70de76499a (diff)
downloadmruby-69ba4f0ed5e7ce179a01316dea753042dfcdfd77.tar.gz
mruby-69ba4f0ed5e7ce179a01316dea753042dfcdfd77.zip
instance_methods etc should not include undef'ed method names; based on a patch from @cremno; fix #2613
Diffstat (limited to 'test/t')
-rw-r--r--test/t/module.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 8503cb9fc..9852328ce 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -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