Permalink
Browse files

additional colour code matcher required, highlighted by ruby 1.8.7 pa…

…tch 330 which returns a different line information string, was caught by a .* on ruby 1.9.2
  • Loading branch information...
JonRowe committed Jan 23, 2011
1 parent 88af108 commit 8e6070343a92defde09c4c4317b683ad9e54c241
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/autotest/rspec2.rb
View
@@ -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+(?:\e\[\d*m)?Failure.*(\n(?:\e\[\d*m)?\s+#\s(.*)?:\d+(?::.*)?)+$/m
+ self.failed_results_re = /^\s*\d+\).*\n\s+(?:\e\[\d*m)?Failure.*(\n(?:\e\[\d*m)?\s+#\s(.*)?:\d+(?::.*)?(?:\e\[\d*m)?)+$/m
self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m
end

0 comments on commit 8e60703

Please sign in to comment.