added dedicated registrant model

This commit is contained in:
Priit Tark 2015-05-11 16:22:43 +03:00
parent 2ed9672eb5
commit 321e28b8c7
10 changed files with 40 additions and 14 deletions

View file

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

View file

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