Reference orphans_contacts_in_months directly from Settings

This commit is contained in:
Karl Erik Õunapuu 2020-09-03 12:41:44 +03:00
parent 6707ca17bf
commit 28dea2f13c
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 9 additions and 10 deletions

View file

@ -22,7 +22,7 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
def archivable_contact
contact = contacts(:john)
Contact.inactivity_period = 0.seconds
Setting.orphans_contacts_in_months = 0
DomainVersion.delete_all
other_contact = contacts(:william)