add qunit to autospec

This commit is contained in:
Régis Hanol
2013-11-01 23:57:50 +01:00
parent e679ba97a3
commit b56b11d96a
18 changed files with 921 additions and 571 deletions

View File

@ -62,16 +62,12 @@ class Users::OmniauthCallbacksController < ApplicationController
BUILTIN_AUTH.each do |authenticator|
if authenticator.name == name
raise Discourse::InvalidAccess.new("provider is not enabled") unless SiteSetting.send("enable_#{name}_logins?")
return authenticator
end
end
Discourse.auth_providers.each do |provider|
if provider.name == name
return provider.authenticator
end
return provider.authenticator if provider.name == name
end
raise Discourse::InvalidAccess.new("provider is not found")