lib/testrbl.rb in testrbl-0.1.7 vs lib/testrbl.rb in testrbl-0.1.8

- old
+ new

@@ -61,10 +61,13 @@ regex = Regexp.escape(test_name).gsub("'",".").gsub("\\ "," ") if method == "should" regex = "#{method} #{regex}\. $" elsif method == "test" - regex = "^#{method}: #{regex}$" + # test "xxx -_ yyy" + # test-unit: "test: xxx -_ yyy" + # activesupport: "test_xxx_-__yyy" + regex = "^test(: |_)#{regex.gsub(" ", ".")}$" elsif method == "it" regex = "\\d+_#{test_name.gsub(MINITEST_NAME_RE, '_').downcase}$" end return [