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:
parent
9eb5c2a66a
commit
ad5a5b4866
6 changed files with 84 additions and 54 deletions
12
spec/views/omniauth_callbacks/failure.html.erb_spec.rb
Normal file
12
spec/views/omniauth_callbacks/failure.html.erb_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue