From: Laurent Sansonetti Date: 2008-03-22T02:58:40+09:00 Subject: [PATCH] fixing test/unit --name Hi, Currently, passing --name to test/unit from the command line is broken with trunk, mostly because methods are returned as symbols and not strings. Index: lib/test/unit/testcase.rb =================================================================== --- lib/test/unit/testcase.rb (revision 114) +++ lib/test/unit/testcase.rb (working copy) @@ -48,7 +48,7 @@ # one suite, creating a new instance of the fixture for # each method. def self.suite - method_names = public_instance_methods(true) + method_names = public_instance_methods(true).map { |m| m.to_s } tests = method_names.delete_if {|method_name| method_name !~ /^test./} suite = TestSuite.new(name) tests.sort.each do Laurent