mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
added dedicated registrant model
This commit is contained in:
parent
2ed9672eb5
commit
321e28b8c7
10 changed files with 40 additions and 14 deletions
|
@ -715,7 +715,7 @@ describe 'EPP Contact', epp: true do
|
|||
end
|
||||
|
||||
it 'fails if contact has associated domain' do
|
||||
@domain = Fabricate(:domain, registrar: @registrar1, registrant: @contact)
|
||||
@domain = Fabricate(:domain, registrar: @registrar1, registrant: Registrant.find(@contact.id))
|
||||
@domain.registrant.present?.should == true
|
||||
|
||||
response = delete_request
|
||||
|
|
|
@ -657,8 +657,8 @@ describe 'EPP Domain', epp: true do
|
|||
})
|
||||
|
||||
response = epp_plain_request(xml, :xml)
|
||||
response[:result_code].should == '1000'
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
response[:result_code].should == '1000'
|
||||
response[:clTRID].should == 'ABC-12345'
|
||||
|
||||
Domain.last.tech_contacts.count.should == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue