mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
contacts:archive: delete orphaned once it's discovered / allow to start query from specific contact_id
This commit is contained in:
parent
bbbb3d5367
commit
fa6ebd9cda
2 changed files with 23 additions and 5 deletions
|
@ -13,7 +13,8 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
|
|||
contact = archivable_contact
|
||||
eliminate_effect_of_all_contacts_except(contact)
|
||||
|
||||
expected_output = "Found archivable contact id(#{contact.id}), code (#{contact.code})\n" \
|
||||
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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue