Exercise ip block comment path in admin area (#39292)

This commit is contained in:
Matt Jankowski 2026-06-05 03:54:34 -04:00 committed by GitHub
parent daae64afab
commit 4957a4fb50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,10 +26,12 @@ RSpec.describe 'Admin::IpBlocks' do
# Valid with IP
fill_in 'ip_block_ip', with: '192.168.1.1'
fill_in 'ip_block_comment', with: 'Block explanation'
expect { submit_form }
.to change(IpBlock, :count).by(1)
expect(page)
.to have_text(I18n.t('admin.ip_blocks.created_msg'))
.and have_text('Block explanation')
end
def submit_form