2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Merge pull request #162 from jessepollak/omniauth-failure

Adds failure callback for omniauth
This commit is contained in:
Robin Ward 2013-02-15 07:13:17 -08:00
commit 3cdf89d052
6 changed files with 84 additions and 54 deletions

View file

@ -0,0 +1,12 @@
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
rendered.match(I18n.t("login.omniauth_error", strategy: 'test')).should be_true
end
end