From b673e9a3040335b63cbf216e66b147f2b83828a9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 4 Jan 2022 17:52:07 +0900 Subject: [PATCH] Fix the previous commit --- test/ruby/test_method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 8f68df7b24..c6a3414074 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1409,7 +1409,7 @@ class TestMethod < Test::Unit::TestCase # use_symbol = Object.instance_methods[0].is_a?(Symbol) nummodule = nummethod = 0 mods = [] - ObjectSpace.each_object(Module) {|m| mods << m if Symbol === m.name } + ObjectSpace.each_object(Module) {|m| mods << m if String === m.name } mods = mods.sort_by {|m| m.name } mods.each {|mod| nummodule += 1