diff options
| author | Patricio Cano <suprnova32@gmail.com> | 2016-07-11 12:41:02 -0500 |
|---|---|---|
| committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-11 12:41:02 -0500 |
| commit | 24cf6b9f62a312c010c9479fd6155f7c72099979 (patch) | |
| tree | f3b6df3dab9dd49e9559b8cc948b9a6ca0bf02bf | |
| parent | 2a0be666e3078e28a02de298b386ec4c09232978 (diff) | |
| download | gitlab-ce-24cf6b9f62a312c010c9479fd6155f7c72099979.tar.gz | |
Refactor `mock_auth_hash`
| -rw-r--r-- | spec/support/login_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index 2e400dd825a..ba08733e48d 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -39,7 +39,6 @@ module LoginHelpers def login_via(provider, user, uid) mock_auth_hash(provider, uid, user.email) - Rails.application.env_config['omniauth.auth'] = OmniAuth.config.mock_auth[:saml] visit new_user_session_path click_link provider end @@ -69,6 +68,7 @@ module LoginHelpers } } }) + Rails.application.env_config['omniauth.auth'] = OmniAuth.config.mock_auth[:saml] end # Requires Javascript driver. |
