2013-02-14 14:11:13 -05:00
|
|
|
require "spec_helper"
|
|
|
|
|
|
|
|
describe "users/omniauth_callbacks/failure.html.erb" do
|
|
|
|
|
|
|
|
it "renders the failure page" do
|
|
|
|
flash[:error] = I18n.t("login.omniauth_error", strategy: 'test')
|
|
|
|
render
|
|
|
|
|
2014-12-31 09:55:03 -05:00
|
|
|
expect(rendered.match(I18n.t("login.omniauth_error", strategy: 'test'))).not_to eq(nil)
|
2013-02-14 14:11:13 -05:00
|
|
|
end
|
|
|
|
|
2014-09-25 11:44:48 -04:00
|
|
|
end
|