mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add owner to technical and admin contact when no other contacts are specified
This commit is contained in:
parent
62b3ff6fc7
commit
3c3a8bfb47
3 changed files with 31 additions and 5 deletions
|
@ -14,7 +14,13 @@ describe 'EPP Domain', epp: true do
|
|||
expect(response[:result_code]).to eq('1000')
|
||||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(response[:clTRID]).to eq('ABC-12345')
|
||||
|
||||
expect(Domain.first.registrar.name).to eq('Zone Media OÜ')
|
||||
expect(Domain.first.tech_contacts.count).to eq 1
|
||||
expect(Domain.first.admin_contacts.count).to eq 1
|
||||
|
||||
tech_contact = Domain.first.tech_contacts.first
|
||||
expect(tech_contact.code).to eq('jd1234')
|
||||
end
|
||||
|
||||
it 'does not create duplicate domain' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue