mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
parent
198a19e441
commit
ad75564e97
2 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,7 @@ module Admin
|
|||
DomainDeleteForcedEmailJob.enqueue(@domain.id, params[:template_name])
|
||||
end
|
||||
|
||||
redirect_to edit_admin_domain_path(@domain), notice: t('.scheduled')
|
||||
redirect_to edit_admin_domain_url(@domain), notice: t('.scheduled')
|
||||
end
|
||||
|
||||
def cancel_force_delete
|
||||
|
@ -81,7 +81,7 @@ module Admin
|
|||
flash.now[:alert] = I18n.t('failed_to_update_domain')
|
||||
end
|
||||
|
||||
redirect_to edit_admin_domain_path(@domain)
|
||||
redirect_to edit_admin_domain_url(@domain)
|
||||
end
|
||||
|
||||
def versions
|
||||
|
|
|
@ -16,6 +16,7 @@ class AdminAreaDomainForceDeleteTest < ActionDispatch::IntegrationTest
|
|||
|
||||
assert @domain.force_delete_scheduled?
|
||||
assert_equal 1, ActionMailer::Base.deliveries.size
|
||||
assert_current_path edit_admin_domain_path(@domain)
|
||||
assert_text 'Force delete procedure has been scheduled'
|
||||
end
|
||||
|
||||
|
@ -28,6 +29,7 @@ class AdminAreaDomainForceDeleteTest < ActionDispatch::IntegrationTest
|
|||
@domain.reload
|
||||
|
||||
refute @domain.force_delete_scheduled?
|
||||
assert_current_path edit_admin_domain_path(@domain)
|
||||
assert_text 'Force delete procedure has been cancelled'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue