From be1e3293deb0ca8c0cacc9d1ab2a0aa985b3f312 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Sat, 21 Jun 2014 07:42:02 +0300 Subject: [PATCH] assign values to necessary Rails.application.secrets variables --- spec/support/omniauth_macros.rb | 5 +++++ 1 file changed, 5 insertions(+) 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(