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
|
# Valid with IP
|
||||||
fill_in 'ip_block_ip', with: '192.168.1.1'
|
fill_in 'ip_block_ip', with: '192.168.1.1'
|
||||||
|
fill_in 'ip_block_comment', with: 'Block explanation'
|
||||||
expect { submit_form }
|
expect { submit_form }
|
||||||
.to change(IpBlock, :count).by(1)
|
.to change(IpBlock, :count).by(1)
|
||||||
expect(page)
|
expect(page)
|
||||||
.to have_text(I18n.t('admin.ip_blocks.created_msg'))
|
.to have_text(I18n.t('admin.ip_blocks.created_msg'))
|
||||||
|
.and have_text('Block explanation')
|
||||||
end
|
end
|
||||||
|
|
||||||
def submit_form
|
def submit_form
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user