Ident validation for birthday type

This commit is contained in:
Andres Keskküla 2015-01-08 16:15:32 +02:00
parent 34cccf237d
commit 6aa393f576
3 changed files with 9 additions and 6 deletions

View file

@ -58,7 +58,7 @@ describe 'EPP Contact', epp: true do
end
it 'successfully saves ident type' do
xml = { ident: { value: '37605030299', attrs: { type: 'birthday' } } }
xml = { ident: { value: '1990-22-12', attrs: { type: 'birthday' } } }
epp_request(create_contact_xml(xml), :xml)
expect(Contact.last.ident_type).to eq('birthday')
end