Contact got correct birthday and country code epp errors

This commit is contained in:
Priit Tark 2015-02-18 16:05:57 +02:00
parent 61ee8ef9f5
commit a8e43dd6cc
5 changed files with 15 additions and 10 deletions

View file

@ -149,7 +149,8 @@ describe Contact do
invalid.each do |date|
@contact.ident = date
@contact.valid?
@contact.errors.full_messages.should == ["Ident is invalid"]
@contact.errors.full_messages.should ==
["Ident Ident not in valid birthady format, should be YYYY-MM-DD"]
end
end
end