Skip to content
Snippets Groups Projects
Commit 24cf6b9f authored by Patricio Cano's avatar Patricio Cano
Browse files

Refactor `mock_auth_hash`

parent 2a0be666
No related branches found
No related tags found
No related merge requests found
Loading
@@ -39,7 +39,6 @@ module LoginHelpers
Loading
@@ -39,7 +39,6 @@ module LoginHelpers
   
def login_via(provider, user, uid) def login_via(provider, user, uid)
mock_auth_hash(provider, uid, user.email) mock_auth_hash(provider, uid, user.email)
Rails.application.env_config['omniauth.auth'] = OmniAuth.config.mock_auth[:saml]
visit new_user_session_path visit new_user_session_path
click_link provider click_link provider
end end
Loading
@@ -69,6 +68,7 @@ module LoginHelpers
Loading
@@ -69,6 +68,7 @@ module LoginHelpers
} }
} }
}) })
Rails.application.env_config['omniauth.auth'] = OmniAuth.config.mock_auth[:saml]
end end
   
# Requires Javascript driver. # Requires Javascript driver.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment