From d847d3b95af2303b593d0692e2c03f7fdf301167 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Tue, 2 Dec 2008 20:42:00 +1100 Subject: [PATCH] removed a debug hint in matcher --- lib/validates_timeliness/validate_timeliness_matcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validates_timeliness/validate_timeliness_matcher.rb b/lib/validates_timeliness/validate_timeliness_matcher.rb index 9f781d5..07f9213 100644 --- a/lib/validates_timeliness/validate_timeliness_matcher.rb +++ b/lib/validates_timeliness/validate_timeliness_matcher.rb @@ -80,7 +80,7 @@ module Spec record.valid? errors = record.errors.on(expected) pass = [ errors ].flatten.any? {|error| match === error } - @last_failure = "error matching #{match.inspect} when value is #{format_value(value)} #{errors.inspect}" unless pass + @last_failure = "error matching #{match.inspect} when value is #{format_value(value)}" unless pass pass end