Permalink
Browse files

Merge pull request #212 from modosc/master

'/' is also a valid character in a MiniTest test name
  • Loading branch information...
2 parents 52ae6c0 + a375d08 commit bcd9ab9068ea3a20afa684c18dd5468b18e837bc @gs gs committed Nov 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 run_ruby_test.py
View
@@ -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("'", "\\'")

0 comments on commit bcd9ab9

Please sign in to comment.