Skip to content

Commit 461f3b9

Browse files
test: call new endpoints to set the challenge in the session
1 parent 8e36bcb commit 461f3b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

spec/requests/devise/passkeys_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
context "when user is authenticated" do
3232
before do
3333
sign_in user, scope: :account
34-
get new_account_passkey_path # To set the challenge in session
34+
get options_for_create_account_passkeys_path # To set the challenge in session
3535
end
3636

3737
context "with valid parameters" do

spec/requests/devise/second_factor_webauthn_credentials_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
context "when user is authenticated" do
4242
before do
4343
sign_in user
44-
get new_account_second_factor_webauthn_credential_path # To set the challenge in session
44+
get options_for_create_account_second_factor_webauthn_credentials_path # To set the challenge in session
4545
end
4646

4747
context "with valid parameters" do

0 commit comments

Comments
 (0)