From cb19d54a97b9f2a215b7c1bc2a00f8e864464ffe Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 13 Feb 2022 19:49:01 +0100 Subject: [PATCH] Fix errors in test cases --- spec/controllers/user/sessions_controller_spec.rb | 2 +- spec/controllers/user_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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