diff --git a/spec/controllers/user/sessions_controller_spec.rb b/spec/controllers/user/sessions_controller_spec.rb index 3b3a61d2..7e079a52 100644 --- a/spec/controllers/user/sessions_controller_spec.rb +++ b/spec/controllers/user/sessions_controller_spec.rb @@ -68,7 +68,7 @@ describe User::SessionsController do it "redirects to the sign in page" do expect(subject).to redirect_to :new_user_session - expect(flash[:error]).to eq I18n.t('views.auth.2fa.errors.invalid_code') + expect(flash[:error]).to eq I18n.t("errors.invalid_otp") end end end diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index c095398c..4332746e 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -253,7 +253,7 @@ describe UserController, type: :controller do Timecop.freeze(Time.at(1603290950)) do subject expect(response).to redirect_to :edit_user_security - expect(flash[:error]).to eq(I18n.t('views.auth.2fa.errors.invalid_code')) + expect(flash[:error]).to eq(I18n.t("errors.invalid_otp")) end end end