Refactor delete.xml to builder

This commit is contained in:
Martin Lensment 2014-09-01 12:10:31 +03:00
parent 08a4650f4a
commit afc69629ef
5 changed files with 72 additions and 14 deletions

View file

@ -440,9 +440,9 @@ describe 'EPP Domain', epp: true do
expect(d.auth_info).to eq('2BARfoo')
end
it 'does not delete domain if there are relations' do
it 'deletes domain' do
expect(DomainContact.count).to eq(1)
response = epp_request('domains/delete.xml')
response = epp_request(domain_delete_xml, :xml)
expect(response[:result_code]).to eq('1000')
expect(Domain.first).to eq(nil)