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