From 2be6c639d622e44b5fd9a80040e7b4b7de4680e6 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Tue, 22 Jul 2008 18:57:45 +1000 Subject: [PATCH] changed 2008 to 2000 in effort to standard test date values --- lib/validates_timeliness/validate_timeliness_matcher.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/validates_timeliness/validate_timeliness_matcher.rb b/lib/validates_timeliness/validate_timeliness_matcher.rb index da67c8d..5b33e55 100644 --- a/lib/validates_timeliness/validate_timeliness_matcher.rb +++ b/lib/validates_timeliness/validate_timeliness_matcher.rb @@ -16,9 +16,9 @@ module Spec def matches?(record) @record = record - valid = error_matching('2008-02-30', /#{options[:invalid_date_message]}/) && - error_matching('2008-01-01 25:00:00', /#{options[:invalid_date_message]}/) && - no_error_matching('2008-01-01 12:12:12', /#{options[:invalid_date_message]}/) + valid = error_matching('2000-01-32', /#{options[:invalid_date_message]}/) && + error_matching('2000-01-01 25:00:00', /#{options[:invalid_date_message]}/) && + no_error_matching('2000-01-01 12:12:12', /#{options[:invalid_date_message]}/) if valid && after = options[:after] valid = error_matching(after, /#{options[:after_message]}/) &&