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

This commit adds a callback route to handle omniauth failure and removes a few unneccessary entries in en.yml

This commit is contained in:
Jesse Pollak 2013-02-14 11:11:13 -08:00
parent 9eb5c2a66a
commit ad5a5b4866
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