Commit d9ebe0d2 authored by Peter Leitzen's avatar Peter Leitzen

Fix kwargs deprecation warnings in session controller specs

parent e7650bc4
......@@ -7,7 +7,7 @@ RSpec.describe Admin::SessionsController, :do_not_mock_admin_mode do
describe '#create' do
context 'when using two-factor authentication' do
def authenticate_2fa(user_params, otp_user_id: user.id)
def authenticate_2fa(otp_user_id: user.id, **user_params)
post(:create, params: { user: user_params }, session: { otp_user_id: otp_user_id })
end
......
......@@ -90,7 +90,7 @@ RSpec.describe SessionsController, :geo do
end
context 'when using two-factor authentication' do
def authenticate_2fa(user_params, otp_user_id: user.id)
def authenticate_2fa(otp_user_id: user.id, **user_params)
post(:create, params: { user: user_params }, session: { otp_user_id: otp_user_id })
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment