Fix uncaught parameter missing exceptions and missing error templates (#11702)
This commit is contained in:
parent
8ee4a2892c
commit
22ce4778eb
8 changed files with 41 additions and 3 deletions
|
@ -112,7 +112,8 @@ describe Settings::TwoFactorAuthenticationsController do
|
|||
end
|
||||
|
||||
it 'raises ActionController::ParameterMissing if code is missing' do
|
||||
expect { post :destroy }.to raise_error(ActionController::ParameterMissing)
|
||||
post :destroy
|
||||
expect(response).to have_http_status(400)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue