Fix fixture

Otherwise HTML validation fails
This commit is contained in:
Artur Beljajev 2019-03-07 14:49:32 +02:00
parent 85ba5c066a
commit ad9a58a17d
3 changed files with 9 additions and 3 deletions

View file

@ -11,7 +11,7 @@ bestnames:
accounting_customer_code: bestnames accounting_customer_code: bestnames
language: en language: en
billing_email: billing@example.com billing_email: billing@example.com
website: bestnames.test website: https://bestnames.test
reference_no: 13 reference_no: 13
goodnames: goodnames:

View file

@ -123,13 +123,16 @@ class RegistrantApiRegistryLocksTest < ApplicationIntegrationTest
end end
def test_locking_domains_returns_serialized_domain_object def test_locking_domains_returns_serialized_domain_object
assert_equal 'Best Names', @domain.registrar.name
assert_equal 'https://bestnames.test', @domain.registrar.website
post '/api/v1/registrant/domains/1b3ee442-e8fe-4922-9492-8fcb9dccc69c/registry_lock', post '/api/v1/registrant/domains/1b3ee442-e8fe-4922-9492-8fcb9dccc69c/registry_lock',
{}, @auth_headers {}, @auth_headers
assert_equal(200, response.status) assert_equal(200, response.status)
response_json = JSON.parse(response.body, symbolize_names: true) response_json = JSON.parse(response.body, symbolize_names: true)
assert_equal({ name: 'Best Names', website: 'bestnames.test' }, response_json[:registrar]) assert_equal({ name: 'Best Names', website: 'https://bestnames.test' }, response_json[:registrar])
assert_equal({name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957'}, response_json[:registrant]) assert_equal({name: 'John', id: 'eb2f2766-b44c-4e14-9f16-32ab1a7cb957'}, response_json[:registrant])
assert_equal([{name: 'Jane', id: '9db3de62-2414-4487-bee2-d5c155567768'}], response_json[:admin_contacts]) assert_equal([{name: 'Jane', id: '9db3de62-2414-4487-bee2-d5c155567768'}], response_json[:admin_contacts])
assert_equal([{name: 'William', id: '0aa54704-d6f7-4ca9-b8ca-2827d9a4e4eb'}, assert_equal([{name: 'William', id: '0aa54704-d6f7-4ca9-b8ca-2827d9a4e4eb'},

View file

@ -25,7 +25,10 @@ class SerializersRegistrantApiDomainTest < ActiveSupport::TestCase
end end
def test_returns_registrar_name def test_returns_registrar_name
assert_equal({name: 'Best Names', website: 'bestnames.test' }, @json[:registrar]) assert_equal 'Best Names', @domain.registrar.name
assert_equal 'https://bestnames.test', @domain.registrar.website
assert_equal({name: 'Best Names', website: 'https://bestnames.test' }, @json[:registrar])
end end
def test_returns_registrant_name_and_uuid def test_returns_registrant_name_and_uuid