mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Fix possible doubling of contact objects after race
This commit is contained in:
parent
a1b39740e7
commit
2fdc487511
4 changed files with 2232 additions and 41 deletions
|
@ -177,7 +177,7 @@ class ContactTest < ActiveSupport::TestCase
|
|||
|
||||
def test_linked_when_in_use_as_domain_contact
|
||||
Domain.update_all(registrant_id: contacts(:william).id)
|
||||
DomainContact.update_all(contact_id: @contact.id)
|
||||
DomainContact.first.update(contact_id: @contact.id)
|
||||
|
||||
assert @contact.linked?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue