From a092e4102066bb1a039fdccbd301d44f69114648 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 30 Apr 2013 00:51:31 +0900 Subject: the receiver should be included in ancestors even when it's a singleton class --- test/t/module.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/t') diff --git a/test/t/module.rb b/test/t/module.rb index 41ee8d8df..8bcb75574 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -18,8 +18,7 @@ assert('Module#ancestors', '15.2.2.4.9') do end sc = Test4ModuleAncestors.singleton_class r = String.ancestors - r.class == Array and r.include?(String) and r.include?(Object) and - ! sc.ancestors.include?(sc) + r.class == Array and r.include?(String) and r.include?(Object) end assert('Module#append_features', '15.2.2.4.10') do -- cgit v1.2.3