diff --git a/test/integration/api/registrant/registrant_api_domains_test.rb b/test/integration/api/registrant/registrant_api_domains_test.rb index 4cfa6bd55..a8801f1b4 100644 --- a/test/integration/api/registrant/registrant_api_domains_test.rb +++ b/test/integration/api/registrant/registrant_api_domains_test.rb @@ -20,7 +20,14 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest assert_equal('hospital.test', domain[:name]) assert_equal('5edda1a5-3548-41ee-8b65-6d60daf85a37', domain[:id]) - assert_equal({name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957', org: false}, domain[:registrant]) + assert_equal({:name=>"John", + :id=>"eb2f2766-b44c-4e14-9f16-32ab1a7cb957", + :ident=>"1234", :ident_type=>"priv", + :ident_country_code=>"US", + :phone=>"+555.555", + :email=>"john@inbox.test", + :org=>false}, + domain[:registrant]) assert_equal([{name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957', email: 'john@inbox.test'}], diff --git a/test/integration/api/registrant/registrant_api_registry_locks_test.rb b/test/integration/api/registrant/registrant_api_registry_locks_test.rb index d024bb6c1..0de47dbc9 100644 --- a/test/integration/api/registrant/registrant_api_registry_locks_test.rb +++ b/test/integration/api/registrant/registrant_api_registry_locks_test.rb @@ -130,7 +130,15 @@ class RegistrantApiRegistryLocksTest < ApplicationIntegrationTest response_json = JSON.parse(response.body, symbolize_names: true) assert_equal({ name: 'Best Names', website: 'https://bestnames.test' }, response_json[:registrar]) - assert_equal({name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957', org: false}, response_json[:registrant]) + assert_equal({:name=>"John", + :id=>"eb2f2766-b44c-4e14-9f16-32ab1a7cb957", + :ident=>"1234", + :ident_type=>"priv", + :ident_country_code=>"US", + :phone=>"+555.555", + :email=>"john@inbox.test", + :org=>false}, + response_json[:registrant]) assert_equal([{name: 'Jane', id: '9db3de62-2414-4487-bee2-d5c155567768', email: 'jane@mail.test' diff --git a/test/lib/serializers/registrant_api/domain_test.rb b/test/lib/serializers/registrant_api/domain_test.rb index d30a50ea3..2e68e4293 100644 --- a/test/lib/serializers/registrant_api/domain_test.rb +++ b/test/lib/serializers/registrant_api/domain_test.rb @@ -31,7 +31,14 @@ class SerializersRegistrantApiDomainTest < ActiveSupport::TestCase end def test_returns_registrant_name_uuid_and_org - assert_equal({name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957', org: false}, + assert_equal({:name=>"John", + :id=>"eb2f2766-b44c-4e14-9f16-32ab1a7cb957", + :ident=>"1234", + :ident_type=>"priv", + :ident_country_code=>"US", + :phone=>"+555.555", + :email=>"john@inbox.test", + :org=>false}, @json[:registrant]) end