Add owner to technical and admin contact when no other contacts are specified

This commit is contained in:
Martin Lensment 2014-07-31 12:09:07 +03:00
parent 62b3ff6fc7
commit 3c3a8bfb47
3 changed files with 31 additions and 5 deletions

View file

@ -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