Fix errors in test cases
This commit is contained in:
parent
1a829f5e47
commit
cb19d54a97
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue