0
0
Fork 0

Fix uncaught parameter missing exceptions and missing error templates (#11702)

This commit is contained in:
Eugen Rochko 2019-08-30 01:34:47 +02:00 committed by GitHub
parent 8ee4a2892c
commit 22ce4778eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 41 additions and 3 deletions

View file

@ -50,7 +50,8 @@ describe Settings::TwoFactorAuthentication::ConfirmationsController do
describe 'when form_two_factor_confirmation parameter is not provided' do
it 'raises ActionController::ParameterMissing' do
expect { post :create, params: {} }.to raise_error(ActionController::ParameterMissing)
post :create, params: {}
expect(response).to have_http_status(400)
end
end

View file

@ -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