make --test work again

need to convert Symbol -> String before compare
This commit is contained in:
Johan Holmberg
2015-08-06 22:39:08 +02:00
parent 13b284ef8c
commit c03de8c577

View File

@ -221,7 +221,7 @@ module Cmdtest
def get_test_methods(runner)
@testcase_class.public_instance_methods(false).sort.select do |method|
in_list = runner.opts.test.empty? || runner.opts.test.include?(method)
in_list = runner.opts.test.empty? || runner.opts.test.include?(method.to_s)
method =~ /^test_/ && in_list
end
end