From 69ba4f0ed5e7ce179a01316dea753042dfcdfd77 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 20 Oct 2014 11:11:26 +0900 Subject: instance_methods etc should not include undef'ed method names; based on a patch from @cremno; fix #2613 --- test/t/module.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/t') 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 -- cgit v1.2.3