diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_method.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 021f618ad3..1a1ac59334 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1183,6 +1183,7 @@ class TestMethod < Test::Unit::TestCase nummodule += 1 mc = mod.kind_of?(Class) ? "class" : "module" puts_line = "#{mc} #{mod.name} #{(mod.ancestors - [mod]).inspect}" + puts_line = puts_line # prevent unused var warning mod.singleton_methods(false).sort.each {|methname| nummethod += 1 meth = mod.method(methname) |