2019-04-30 08:27:42 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-15 03:11:13 +08:00
|
|
|
describe "users/omniauth_callbacks/failure.html.erb" do
|
2022-03-21 22:28:52 +08:00
|
|
|
before do
|
|
|
|
flash[:error] = I18n.t("login.omniauth_error", strategy: 'test')
|
|
|
|
end
|
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
|