Skip to content

Commit

Permalink
Merge pull request #386 from brunobowden/update
Browse files Browse the repository at this point in the history
Slashy String regex error for matchRegexOutputs
  • Loading branch information
brunobowden committed Aug 23, 2015
2 parents 53d3eae + 6eb6e09 commit 44f0d6d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ class Utils {
Matcher stdMatcher = (stdout.toString() =~ regex)
Matcher errMatcher = (stderr.toString() =~ regex)
// Requires a capturing group in the regex
String assertFailMsg = "matchRegexOutputs must have '(...)' capture group, regex: '$regex'"
String assertFailMsg =
"matchRegexOutputs must have '(...)' capture group, regex: " +
escapeSlashyString(regex)
assert stdMatcher.groupCount() >= 1, assertFailMsg
assert errMatcher.groupCount() >= 1, assertFailMsg

Expand Down

0 comments on commit 44f0d6d

Please sign in to comment.