Skip to content
Browse files

add in an optional non matching group so that coloured output is stil…

…l recognised
  • Loading branch information...
1 parent 79076fd commit 88af1080b88f613cb1b41a21477298d2c1ba62b8 @JonRowe committed Jan 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/autotest/rspec2.rb
View
2 lib/autotest/rspec2.rb
@@ -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

0 comments on commit 88af108

Please sign in to comment.
Something went wrong with that request. Please try again.