mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Add another test with value removing
This commit is contained in:
parent
e86f52afae
commit
034adb616c
1 changed files with 28 additions and 0 deletions
|
@ -76,6 +76,34 @@ describe 'EPP Helper', epp: true do
|
|||
|
||||
generated = Nokogiri::XML(xml).to_s.squish
|
||||
expect(generated).to eq(expected)
|
||||
|
||||
###
|
||||
|
||||
expected = Nokogiri::XML('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<create>
|
||||
<domain:create
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>one.ee</domain:name>
|
||||
</domain:create>
|
||||
</create>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
||||
').to_s.squish
|
||||
|
||||
xml = domain_create_xml(
|
||||
name: 'one.ee',
|
||||
period: false,
|
||||
nameservers: [],
|
||||
registrant: false,
|
||||
contacts: [],
|
||||
authInfo: false
|
||||
)
|
||||
|
||||
generated = Nokogiri::XML(xml).to_s.squish
|
||||
expect(generated).to eq(expected)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue