diff --git a/run_ruby_test.py b/run_ruby_test.py index 902ba49..eb89cf4 100644 --- a/run_ruby_test.py +++ b/run_ruby_test.py @@ -88,7 +88,7 @@ def find_first_match(test_file_content): if match_obj: return match_obj.group(1)[::-1] - match_obj = re.search('\s?[\"\']([a-zA-Z_\"\'\s\d\-\.#=?!:/]+)[\"\']\s+tset', test_file_content) # 2nd search for 'test "name"' + match_obj = re.search('\s?[\"\']([a-zA-Z_\"\'\s\d\-\.#=?!:\/]+)[\"\']\s+tset', test_file_content) # 2nd search for 'test "name"' if match_obj: test_name = match_obj.group(1)[::-1] return "test_%s" % test_name.replace("\"", "\\\"").replace(" ", "_").replace("'", "\\'")