mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Refactor delete.xml to builder
This commit is contained in:
parent
08a4650f4a
commit
afc69629ef
5 changed files with 72 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue