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-09-25 11:44:48 -04:00
|
|
|
rendered.match(I18n.t("login.omniauth_error", strategy: 'test')).should_not == nil
|
2013-02-14 14:11:13 -05:00
|
|
|
end
|
|
|
|
|
2014-09-25 11:44:48 -04:00
|
|
|
end
|