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