mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
transfer code change during registrant change
This commit is contained in:
parent
e2c6c9ef97
commit
8916bcd0d6
4 changed files with 31 additions and 186 deletions
|
@ -62,6 +62,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
@auth_headers['Content-Type'] = 'application/json'
|
||||
new_registrant = contacts(:william)
|
||||
refute @domain.registrant == new_registrant
|
||||
old_transfer_code = @domain.transfer_code
|
||||
|
||||
payload = {
|
||||
domain: {
|
||||
|
@ -80,6 +81,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
assert_equal 1000, json[:code]
|
||||
assert_equal 'Command completed successfully', json[:message]
|
||||
|
||||
refute_equal old_transfer_code, @domain.transfer_code
|
||||
assert @domain.registrant.code == new_registrant.code
|
||||
refute @domain.statuses.include? DomainStatus::PENDING_UPDATE
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue