mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +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
|
assert_equal 'Contact cannot be archived', e.message
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def archivable_contact
|
def archivable_contact
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue