diff --git a/spec/epp/epp_helper_spec.rb b/spec/epp/epp_helper_spec.rb index 1d52f4ccd..c9fd054ba 100644 --- a/spec/epp/epp_helper_spec.rb +++ b/spec/epp/epp_helper_spec.rb @@ -31,6 +31,51 @@ describe 'EPP Helper', epp: true do generated = Nokogiri::XML(domain_create_xml).to_s.squish expect(generated).to eq(expected) + + ### + + expected = Nokogiri::XML(' + + + + + one.ee + 345 + + ns1.test.net + ns2.test.net + + 32fsdaf + 2323rafaf + 3dgxx + 345xxv + + sdgdgd4esfsa + + + + ABC-12345 + + + ').to_s.squish + + xml = domain_create_xml( + name: 'one.ee', + period_value: '345', + period_unit: 'd', + nameservers: [{hostObj: 'ns1.test.net'}, {hostObj: 'ns2.test.net'}], + registrant: '32fsdaf', + contacts: [ + {contact_value: '2323rafaf', contact_type: 'admin'}, + {contact_value: '3dgxx', contact_type: 'tech'}, + {contact_value: '345xxv', contact_type: 'tech'} + ], + pw: 'sdgdgd4esfsa' + ) + + generated = Nokogiri::XML(xml).to_s.squish + expect(generated).to eq(expected) end end end