Fix CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-09-04 14:55:30 +03:00
parent 5c7e07dbb5
commit a5b59f20ab
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 2 additions and 12 deletions

View file

@ -31,7 +31,8 @@ module Concerns
def notify_registrar_about_archivation
registrar.notifications.create!(
text: I18n.t('contact_has_been_archived',
contact_code: code, orphan_months: Setting.orphans_contacts_in_months))
contact_code: code, orphan_months: Setting.orphans_contacts_in_months)
)
end
def inactive?

View file

@ -9,17 +9,6 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
end
end
def test_output
contact = archivable_contact
eliminate_effect_of_all_contacts_except(contact)
expected_output = "Found 1 unlinked contacts. Starting to archive.\n" \
"Found archivable contact id(#{contact.id}), code (#{contact.code})\n" \
"Archiving contact: id(#{contact.id}), code(#{contact.code})\n" \
"Archived total: 1\n"
assert_output(expected_output) { run_task }
end
private
def archivable_contact