A platform for community discussion. Free, open, simple.
DEV: Remove autospec hacks for social auth providers
David Taylorac89a728f82d
diff --git a/spec/components/auth/facebook_authenticator_spec.rb b/spec/components/auth/facebook_authenticator_spec.rbindex ccdd3865cbb..2c6c2a3312e 100644--- a/spec/components/auth/facebook_authenticator_spec.rb+++ b/spec/components/auth/facebook_authenticator_spec.rb@@ -1,11 +1,5 @@require 'rails_helper'-# In the ghetto ... getting the spec to run in autospec-# thing is we need to load up all auth really early pre-fork-# it means that the require is not going to get a new copy-Auth.send(:remove_const, :FacebookAuthenticator)-load 'auth/facebook_authenticator.rb'-describe Auth::FacebookAuthenticator docontext 'after_authenticate' dodiff --git a/spec/components/auth/google_oauth2_authenticator_spec.rb b/spec/components/auth/google_oauth2_authenticator_spec.rbindex 06962d0c15b..17fb1082cec 100644--- a/spec/components/auth/google_oauth2_authenticator_spec.rb+++ b/spec/components/auth/google_oauth2_authenticator_spec.rb@@ -1,9 +1,5 @@require 'rails_helper'-# For autospec:-Auth.send(:remove_const, :GoogleOAuth2Authenticator)-load 'auth/google_oauth2_authenticator.rb'-describe Auth::GoogleOAuth2Authenticator doit 'does not look up user unless email is verified' dodiff --git a/spec/components/auth/open_id_authenticator_spec.rb b/spec/components/auth/open_id_authenticator_spec.rbindex 761bd1af955..dd0847868cf 100644--- a/spec/components/auth/open_id_authenticator_spec.rb+++ b/spec/components/auth/open_id_authenticator_spec.rb@@ -1,11 +1,5 @@require 'rails_helper'-# In the ghetto ... getting the spec to run in autospec-# thing is we need to load up all auth really early pre-fork-# it means that the require is not going to get a new copy-Auth.send(:remove_const, :OpenIdAuthenticator)-load 'auth/open_id_authenticator.rb'-describe Auth::OpenIdAuthenticator doit "can lookup pre-existing user if trusted" do