Use framework helpers instead of i-vars in controller specs (#27767)
This commit is contained in:
parent
790f6356be
commit
e545978076
5 changed files with 17 additions and 17 deletions
|
@ -378,7 +378,7 @@ RSpec.describe Auth::SessionsController do
|
|||
|
||||
context 'when using a valid webauthn credential' do
|
||||
before do
|
||||
@controller.session[:webauthn_challenge] = challenge
|
||||
controller.session[:webauthn_challenge] = challenge
|
||||
|
||||
post :create, params: { user: { credential: fake_credential } }, session: { attempt_user_id: user.id, attempt_user_updated_at: user.updated_at.to_s }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue