Skip to content

Commit

Permalink
add in an optional non matching group so that coloured output is stil…
Browse files Browse the repository at this point in the history
…l recognised
  • Loading branch information
JonRowe committed Jan 23, 2011
1 parent 79076fd commit 88af108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autotest/rspec2.rb
Expand Up @@ -19,7 +19,7 @@ def initialize

# Example for Ruby 1.8: http://rubular.com/r/AOXNVDrZpx
# Example for Ruby 1.9: http://rubular.com/r/85ag5AZ2jP
self.failed_results_re = /^\s*\d+\).*\n\s+Failure.*(\n\s+#\s(.*)?:\d+(?::.*)?)+$/m
self.failed_results_re = /^\s*\d+\).*\n\s+(?:\e\[\d*m)?Failure.*(\n(?:\e\[\d*m)?\s+#\s(.*)?:\d+(?::.*)?)+$/m
self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m
end

Expand Down

0 comments on commit 88af108

Please sign in to comment.