Return domain name in domain transfers API

#693
This commit is contained in:
Artur Beljajev 2018-02-22 18:27:00 +02:00
parent 923d2d5446
commit 0eca515c3d
2 changed files with 5 additions and 2 deletions

View file

@ -8,7 +8,10 @@ class APIDomainTransfersTest < ActionDispatch::IntegrationTest
assert_equal registrars(:goodnames), domains(:shop).registrar
assert_response 200
assert_equal ({ data: [{
type: 'domain_transfer'
type: 'domain_transfer',
attributes: {
domain_name: 'shop.test'
},
}] }),
JSON.parse(response.body, symbolize_names: true)
end