summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-01-04 17:52:07 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-01-04 17:52:07 +0900
commitb673e9a3040335b63cbf216e66b147f2b83828a9 (patch)
treeb490f0da9b67e4759547b801fd82842122f3830c /test/ruby/test_method.rb
parent426ddbfff5e3106db52456e2b91a23f2f1644872 (diff)
downloadruby-b673e9a3040335b63cbf216e66b147f2b83828a9.tar.gz
Fix the previous commit
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb2
1 files changed, 1 insertions, 1 deletions
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