Skip to content

Commit

Permalink
Fix contact archivation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karlerikounapuu committed Sep 3, 2020
1 parent 3c77566 commit 80cd567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/models/contact_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ def test_unlinked_scope_returns_unlinked_contact

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

Expand Down

0 comments on commit 80cd567

Please sign in to comment.