mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
fixed tests assert
This commit is contained in:
parent
4a5dc43202
commit
a2760e1f9e
1 changed files with 4 additions and 5 deletions
|
@ -3,6 +3,7 @@ require 'test_helper'
|
|||
class EppDomainTransferRequestTest < EppTestCase
|
||||
def setup
|
||||
@domain = domains(:shop)
|
||||
@domain_library = domains(:library)
|
||||
@new_registrar = registrars(:goodnames)
|
||||
@original_transfer_wait_time = Setting.transfer_wait_time
|
||||
Setting.transfer_wait_time = 0
|
||||
|
@ -63,15 +64,13 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
def test_transfer_domain_with_contacts_if_admin_and_tech_and_registrant_are_shared
|
||||
registrar_id = @domain.registrar.id
|
||||
new_contact = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
@domain.domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
@domain.domain_contacts[1].update!(contact_id: new_contact.id)
|
||||
|
||||
@domain.admin_domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
@domain.tech_domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
@domain.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
result_hash = @domain.contacts.pluck(:original_id).group_by(&:itself).transform_values(&:count)
|
||||
assert_equal result_hash[new_contact.id], 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue