Reduce factory creation across controllers/admin
specs (#33752)
This commit is contained in:
parent
93f3c724ae
commit
8a2d764d34
4 changed files with 18 additions and 66 deletions
|
@ -58,11 +58,9 @@ RSpec.describe Admin::EmailDomainBlocksController do
|
|||
post :create, params: { email_domain_block: { domain: 'example.com' }, save: '' }
|
||||
end
|
||||
|
||||
it 'blocks the domain' do
|
||||
it 'blocks the domain and redirects to email domain blocks' do
|
||||
expect(EmailDomainBlock.find_by(domain: 'example.com')).to_not be_nil
|
||||
end
|
||||
|
||||
it 'redirects to e-mail domain blocks' do
|
||||
expect(response).to redirect_to(admin_email_domain_blocks_path)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue