mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
parent
6a7a705fa8
commit
d2e8afdb5a
1 changed files with 8 additions and 5 deletions
|
@ -13,11 +13,7 @@ class AdminAreaDomainForceDeleteTest < ActionDispatch::IntegrationTest
|
|||
refute @domain.force_delete_scheduled?
|
||||
|
||||
visit edit_admin_domain_url(@domain)
|
||||
|
||||
assert_difference '@domain.registrar.messages.size' do
|
||||
click_link_or_button 'Force delete domain'
|
||||
end
|
||||
|
||||
click_link_or_button 'Force delete domain'
|
||||
@domain.reload
|
||||
|
||||
assert @domain.force_delete_scheduled?
|
||||
|
@ -25,6 +21,13 @@ class AdminAreaDomainForceDeleteTest < ActionDispatch::IntegrationTest
|
|||
assert_text 'Force delete procedure has been scheduled'
|
||||
end
|
||||
|
||||
def test_notifies_registrar
|
||||
assert_difference '@domain.registrar.messages.size' do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
click_link_or_button 'Force delete domain'
|
||||
end
|
||||
end
|
||||
|
||||
def test_notifies_registrant_and_admin_contacts_by_email_by_default
|
||||
assert_emails 1 do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue