Exercise ip block comment path in admin area (#39292)
This commit is contained in:
parent
daae64afab
commit
4957a4fb50
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user