From 1722c156dd45618cea712f017ca744d6f3b55be8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 30 Sep 2019 17:35:29 +0900 Subject: Now `use_symbol` is always true --- test/ruby/test_method.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index fe1df15d29..9b68b84134 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1174,7 +1174,7 @@ class TestMethod < Test::Unit::TestCase # chkbuild lists all methods. # The following code emulate this listing. - use_symbol = Object.instance_methods[0].is_a?(Symbol) + # use_symbol = Object.instance_methods[0].is_a?(Symbol) nummodule = nummethod = 0 mods = [] ObjectSpace.each_object(Module) {|m| mods << m if m.name } @@ -1191,7 +1191,7 @@ class TestMethod < Test::Unit::TestCase # puts line } ms = mod.instance_methods(false) - if use_symbol + if true or use_symbol ms << :initialize if mod.private_instance_methods(false).include? :initialize else ms << "initialize" if mod.private_instance_methods(false).include? "initialize" -- cgit v1.2.3