Skip to content

Commit

Permalink
Fix typo in source setted->set (mastodon#18385)
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -S ./CHANGELOG.md,./AUTHORS.md,./config/locales,./app/javascript/mastodon/locales -L ba,keypair,medias,ro`
  • Loading branch information
luzpaz authored May 10, 2022
1 parent 662ed53 commit 898fe2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
let(:user) { Fabricate(:user, email: 'local-part@domain', otp_secret: with_otp_secret ? 'oldotpsecret' : nil) }

describe 'GET #new' do
context 'when signed in and a new otp secret has been setted in the session' do
context 'when signed in and a new otp secret has been set in the session' do
subject do
sign_in user, scope: :user
get :new, session: { challenge_passed_at: Time.now.utc, new_otp_secret: 'thisisasecretforthespecofnewview' }
Expand All @@ -36,7 +36,7 @@
expect(response).to redirect_to('/auth/sign_in')
end

it 'redirects if a new otp_secret has not been setted in the session' do
it 'redirects if a new otp_secret has not been set in the session' do
sign_in user, scope: :user
get :new, session: { challenge_passed_at: Time.now.utc }
expect(response).to redirect_to('/settings/otp_authentication')
Expand Down

0 comments on commit 898fe2f

Please sign in to comment.