Fix suspending an already-limited domain (#25603)

lolsob-rspec
Claire 2023-06-27 12:32:51 +02:00 committed by GitHub
parent 5e18962962
commit 92fbaae7b6
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
- content_for :page_title do - content_for :page_title do
= t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain)) = t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
= simple_form_for @domain_block, url: admin_domain_blocks_path(@domain_block) do |f| = simple_form_for @domain_block, url: admin_domain_blocks_path, method: :post do |f|
%p.hint= t('.preamble_html', domain: Addressable::IDNA.to_unicode(@domain_block.domain)) %p.hint= t('.preamble_html', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
%ul.hint %ul.hint

View File

@ -53,7 +53,7 @@ describe 'blocking domains through the moderation interface' do
# Confirming updates the block # Confirming updates the block
click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm') click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm')
expect(domain_block.reload.severity).to eq 'silence' expect(domain_block.reload.severity).to eq 'suspend'
end end
end end
@ -72,7 +72,7 @@ describe 'blocking domains through the moderation interface' do
# Confirming updates the block # Confirming updates the block
click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm') click_on I18n.t('admin.domain_blocks.confirm_suspension.confirm')
expect(domain_block.reload.severity).to eq 'silence' expect(domain_block.reload.severity).to eq 'suspend'
end end
end end
end end