Fix errors in test cases

This commit is contained in:
Andreas Nedbal 2022-02-13 19:49:01 +01:00 committed by Andreas Nedbal
parent 1a829f5e47
commit cb19d54a97
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ describe User::SessionsController do
it "redirects to the sign in page" do it "redirects to the sign in page" do
expect(subject).to redirect_to :new_user_session 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 end
end end

View File

@ -253,7 +253,7 @@ describe UserController, type: :controller do
Timecop.freeze(Time.at(1603290950)) do Timecop.freeze(Time.at(1603290950)) do
subject subject
expect(response).to redirect_to :edit_user_security 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 end
end end