diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-10 00:19:53 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-10 00:19:53 -0700 |
commit | 253bc0ca15a9b2f459aef94a33de926984747f35 (patch) | |
tree | 6ef49e01cc205170951275f5734a87dbd5471411 /features | |
parent | 25f684e81d27fff537d71ba38b7106f2fdc5e701 (diff) | |
download | gitlab-ce-253bc0ca15a9b2f459aef94a33de926984747f35.tar.gz |
Fix test
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/admin/users.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/features/steps/admin/users.rb b/features/steps/admin/users.rb index 2e17d5c4c2e..4bc290b6bdf 100644 --- a/features/steps/admin/users.rb +++ b/features/steps/admin/users.rb @@ -4,11 +4,13 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps include SharedAdmin before do - allow(Devise).to receive(:omniauth_providers).and_return([:twitter, :twitter_updated]) + allow(Gitlab::OAuth::Provider).to receive(:providers).and_return([:twitter, :twitter_updated]) + allow_any_instance_of(ApplicationHelper).to receive(:user_omniauth_authorize_path).and_return(root_path) end after do - allow(Devise).to receive(:omniauth_providers).and_call_original + allow(Gitlab::OAuth::Provider).to receive(:providers).and_call_original + allow_any_instance_of(ApplicationHelper).to receive(:user_omniauth_authorize_path).and_call_original end step 'I should see all users' do |