2019-04-30 08:27:42 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-28 10:27:38 +08:00
|
|
|
RSpec.describe "users/omniauth_callbacks/failure.html.erb" do
|
2022-03-21 22:28:52 +08:00
|
|
|
before { flash[:error] = I18n.t("login.omniauth_error", strategy: "test") }
|
2013-02-15 03:11:13 +08:00
|
|
|
|
|
|
|
it "renders the failure page" do
|
2022-03-21 22:28:52 +08:00
|
|
|
render template: "users/omniauth_callbacks/failure"
|
2013-02-15 03:11:13 +08:00
|
|
|
|
2022-03-21 22:28:52 +08:00
|
|
|
expect(rendered).to match I18n.t("login.omniauth_error.generic", strategy: "test")
|
2013-02-15 03:11:13 +08:00
|
|
|
end
|
2014-09-25 23:44:48 +08:00
|
|
|
end
|