DEV: Remove autospec hacks for social auth providers

This was causing erratic test failures. Autospec continues to work after
removing, so this 5-year-old code is no longer needed.
This commit is contained in:
David Taylor 2018-10-09 12:42:57 +01:00
parent 1d2b48557c
commit ac89a728f8
3 changed files with 0 additions and 16 deletions

View File

@ -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 do
context 'after_authenticate' do

View File

@ -1,9 +1,5 @@
require 'rails_helper'
# For autospec:
Auth.send(:remove_const, :GoogleOAuth2Authenticator)
load 'auth/google_oauth2_authenticator.rb'
describe Auth::GoogleOAuth2Authenticator do
it 'does not look up user unless email is verified' do

View File

@ -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 do
it "can lookup pre-existing user if trusted" do