Add domain name to domain transfer message

#694
This commit is contained in:
Artur Beljajev 2018-02-19 03:51:32 +02:00
parent 6a7effac50
commit 4d7a222547
7 changed files with 21 additions and 25 deletions

View file

@ -47,7 +47,9 @@ class APIDomainTransfersTest < ActionDispatch::IntegrationTest
post '/repp/v1/domain_transfers', request_params, { 'HTTP_AUTHORIZATION' => http_auth_key }
end
message = 'Domain transfer was approved, associated contacts were: ["jane-001", "william-001"] and registrant was john-001'
message = 'Domain transfer of shop.test has been approved.' \
' Old contacts: jane-001, william-001' \
'; old registrant: john-001'
assert_equal message, @old_registrar.messages.last.body
end

View file

@ -46,7 +46,9 @@ class EppDomainTransferRequestTest < ActionDispatch::IntegrationTest
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }
end
message = 'Domain transfer was approved, associated contacts were: ["jane-001", "william-001"] and registrant was john-001'
message = 'Domain transfer of shop.test has been approved.' \
' Old contacts: jane-001, william-001' \
'; old registrant: john-001'
assert_equal message, @old_registrar.messages.last.body
end

View file

@ -18,7 +18,9 @@ class DomainTransferTest < ActiveSupport::TestCase
@domain_transfer.approve
end
body = 'Domain transfer was approved, associated contacts were: ["jane-001", "william-001"] and registrant was john-001'
body = 'Domain transfer of shop.test has been approved.' \
' Old contacts: jane-001, william-001' \
'; old registrant: john-001'
id = @domain_transfer.id
class_name = @domain_transfer.class.name