mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Test poll notification is sent to registrar after contact archivation
This commit is contained in:
parent
a5b59f20ab
commit
5330743e51
1 changed files with 10 additions and 0 deletions
|
@ -58,6 +58,16 @@ class ArchivableContactTest < ActiveSupport::TestCase
|
|||
assert_equal 'Contact cannot be archived', e.message
|
||||
end
|
||||
|
||||
def test_sends_poll_msg_to_registrar_after_archivation
|
||||
contact = archivable_contact
|
||||
registrar = contact.registrar
|
||||
contact.archive
|
||||
|
||||
assert_equal(I18n.t(:contact_has_been_archived, contact_code: contact.code,
|
||||
orphan_months: Setting.orphans_contacts_in_months),
|
||||
registrar.notifications.last.text)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def archivable_contact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue