diff --git a/spec/support/omniauth_macros.rb b/spec/support/omniauth_macros.rb index 9b9dab39..88b605fe 100644 --- a/spec/support/omniauth_macros.rb +++ b/spec/support/omniauth_macros.rb @@ -2,6 +2,11 @@ module OmniauthMacros # The mock_auth configuration allows you to set per-provider (or default) # authentication hashes to return during integration testing. + Rails.application.secrets.google_key = 'test key google' + Rails.application.secrets.google_secret = 'test secret google' + Rails.application.secrets.facebook_key = 'test key facebook' + Rails.application.secrets.facebook_secret = 'test secret facebook' + def mock_auth_new_user OmniAuth.config.mock_auth[:google] = OmniAuth::AuthHash.new(