Improve logging

This commit is contained in:
Karl Erik Õunapuu 2020-09-03 16:42:04 +03:00
parent 11fc484270
commit bbbb3d5367
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 8 additions and 17 deletions

View file

@ -13,7 +13,8 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
contact = archivable_contact
eliminate_effect_of_all_contacts_except(contact)
expected_output = "Contact ##{contact.id} (code: #{contact.code}) is archived\n" \
expected_output = "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