assign values to necessary Rails.application.secrets variables
This commit is contained in:
parent
043ba75e81
commit
be1e3293de
1 changed files with 5 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue