tweaked readme

changed mixed validation spec to datetime value out of Time range
This commit is contained in:
Adam Meehan
2008-07-20 10:53:09 +10:00
parent 80ed110efc
commit 7a16d35e31
3 changed files with 26 additions and 27 deletions

View File

@@ -336,8 +336,9 @@ describe ValidatesTimeliness::Validations do
@person.errors.on(:birth_date_and_time).should match(/must be after/)
end
it "should correctly validate date attribute with Time restriction" do
@person.birth_date = "2008-01-03"
it "should correctly validate date attribute with DateTime restriction" do
@person.birth_date = "2008-01-03"
@person.birth_date_and_time = "1890-01-01 00:00:00"
@person.should_not be_valid
@person.errors.on(:birth_date).should match(/must be on or before/)
end