mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
updated tests
This commit is contained in:
parent
635e7b9c4f
commit
fff7bcb1cf
2 changed files with 8 additions and 6 deletions
|
@ -13,8 +13,14 @@ class ContactNotificationTest < ActionMailer::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_notify_tech_contacts
|
||||
ContactNotification.notify_tech_contact(domain: @domain, text: @text)
|
||||
def test_notify_tech_contacts_that_nameserver_is_broken
|
||||
ContactNotification.notify_tech_contact(domain: @domain, reason: 'nameserver')
|
||||
assert_equal @domain.tech_contacts.count, 2
|
||||
assert_emails 2
|
||||
end
|
||||
|
||||
def test_notify_tech_contacts_that_dnssec_is_broken
|
||||
ContactNotification.notify_tech_contact(domain: @domain, reason: 'dnssec')
|
||||
assert_equal @domain.tech_contacts.count, 2
|
||||
assert_emails 2
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue