mirror of
https://github.com/internetee/registry.git
synced 2025-07-05 10:43:32 +02:00
Updated contact ident_type logic
This commit is contained in:
parent
5fa1107e3e
commit
0a4a7f98c2
4 changed files with 7 additions and 2 deletions
|
@ -31,6 +31,8 @@ describe 'EPP Contact', epp: true do
|
|||
|
||||
expect(Contact.count).to eq(1)
|
||||
expect(Contact.first.org_name).to eq('Example Inc.')
|
||||
expect(Contact.first.ident).to eq '37605030299'
|
||||
expect(Contact.first.ident_type).to eq 'op'
|
||||
|
||||
expect(Contact.first.address.street).to eq('123 Example Dr.')
|
||||
expect(Contact.first.address.street2).to eq('Suite 100')
|
||||
|
@ -94,6 +96,8 @@ describe 'EPP Contact', epp: true do
|
|||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(Contact.first.name).to eq('John Doe')
|
||||
expect(Contact.first.email).to eq('jdoe@example.com')
|
||||
expect(Contact.first.ident).to eq('J836954')
|
||||
expect(Contact.first.ident_type).to eq('passport')
|
||||
end
|
||||
|
||||
it 'returns phone and email error' do
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<contact:voice x="1234">+123.7035555555</contact:voice>
|
||||
<contact:fax>+1.7035555556</contact:fax>
|
||||
<contact:email>jdoe@example.com</contact:email>
|
||||
<contact:ident type="op">37605030299</contact:ident>
|
||||
<contact:ident type="passport">J836954</contact:ident>
|
||||
<contact:authInfo>
|
||||
<contact:pw>2fooBAR</contact:pw>
|
||||
</contact:authInfo>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue