0
0
Fork 0

Convert settings/two_factor_authentication/recovery_codes spec controller->system/request (#33912)

This commit is contained in:
Matt Jankowski 2025-02-13 03:02:01 -05:00 committed by GitHub
parent c433fd01a6
commit 62dc303d3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 30 deletions

View file

@ -0,0 +1,16 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Settings TwoFactorAuthentication RecoveryCodes' do
describe 'POST /settings/two_factor_authentication/recovery_codes' do
context 'when signed out' do
it 'redirects to sign in page' do
post settings_two_factor_authentication_recovery_codes_path
expect(response)
.to redirect_to(new_user_session_path)
end
end
end
end