mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix typo
This commit is contained in:
parent
41d9a36431
commit
bc3ea52667
2 changed files with 5 additions and 3 deletions
|
@ -10,7 +10,7 @@ module Deserializers
|
|||
def call
|
||||
attributes = {
|
||||
name: if_present('postalInfo name'),
|
||||
org: if_present('postalInfo org'),
|
||||
org_name: if_present('postalInfo org'),
|
||||
email: if_present('email'),
|
||||
fax: if_present('fax'),
|
||||
phone: if_present('voice'),
|
||||
|
|
|
@ -22,6 +22,7 @@ class DeserializersXmlContactTest < ActiveSupport::TestCase
|
|||
<contact:chg>
|
||||
<contact:postalInfo>
|
||||
<contact:name>new name</contact:name>
|
||||
<contact:org>Org</contact:org>
|
||||
</contact:postalInfo>
|
||||
<contact:voice>+123.4</contact:voice>
|
||||
<contact:email>new-email@inbox.test</contact:email>
|
||||
|
@ -35,8 +36,9 @@ class DeserializersXmlContactTest < ActiveSupport::TestCase
|
|||
nokogiri_frame = Nokogiri::XML(xml_string).remove_namespaces!
|
||||
instance = ::Deserializers::Xml::Contact.new(nokogiri_frame)
|
||||
assert_equal instance.call, { name: 'new name',
|
||||
email: 'new-email@inbox.test',
|
||||
phone: '+123.4' }
|
||||
org_name: 'Org',
|
||||
email: 'new-email@inbox.test',
|
||||
phone: '+123.4' }
|
||||
end
|
||||
|
||||
def test_handles_create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue