moved format proc helper methods into formats module so they work

This commit is contained in:
Adam Meehan
2008-07-17 16:25:54 +10:00
parent c37c3e82fa
commit 33c298163e
3 changed files with 16 additions and 17 deletions

View File

@@ -244,7 +244,7 @@ describe ValidatesTimeliness::Validations do
end
it "should have error when on boundary of :after restriction" do
@person.birth_time = "06:00"
@person.birth_time = "06:00am"
@person.should_not be_valid
@person.errors.on(:birth_time).should match(/must be after/)
end