2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-10-11 05:41:23 -04:00
|
|
|
require "rails_helper"
|
2013-02-14 14:11:13 -05:00
|
|
|
|
|
|
|
describe "users/omniauth_callbacks/failure.html.erb" do
|
|
|
|
|
|
|
|
it "renders the failure page" do
|
|
|
|
flash[:error] = I18n.t("login.omniauth_error", strategy: 'test')
|
|
|
|
render
|
|
|
|
|
2019-08-12 05:55:02 -04:00
|
|
|
expect(rendered.match(I18n.t("login.omniauth_error.generic", strategy: 'test'))).not_to eq(nil)
|
2013-02-14 14:11:13 -05:00
|
|
|
end
|
|
|
|
|
2014-09-25 11:44:48 -04:00
|
|
|
end
|