mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Fix contact archivation tests
This commit is contained in:
parent
3c7756680d
commit
7a24eab63a
2 changed files with 2 additions and 3 deletions
|
@ -265,9 +265,8 @@ class ContactTest < ActiveSupport::TestCase
|
|||
|
||||
def test_unlinked_scope_skips_contact_that_is_linked_as_registrant
|
||||
contact = unlinked_contact
|
||||
domains(:shop).update_columns(registrant_id: contact.becomes(Registrant))
|
||||
domains(:shop).update_columns(registrant_id: contact.becomes(Registrant).id)
|
||||
|
||||
reload
|
||||
assert Contact.unlinked.exclude?(contact), 'Contact should be excluded'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue