diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-23 16:49:15 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-23 16:49:15 +0300 |
commit | 4acd1f5d6a1942d4348b5d94e278fdb25c29e532 (patch) | |
tree | 84f03692cc9b10cfcc47a1d47f4665b1510bb0a7 | |
parent | 8c6cbd430639f03461df625ff1cbeca1294f4b25 (diff) |
Fix tests for admin identities after migrate to rspec3
-rw-r--r-- | features/steps/admin/users.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/features/steps/admin/users.rb b/features/steps/admin/users.rb index 149603391b3..6c4b91586d6 100644 --- a/features/steps/admin/users.rb +++ b/features/steps/admin/users.rb @@ -121,7 +121,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps end step 'I visit "Pete" identities page in admin' do - Gitlab::OAuth::Provider.stub!(names: %w(twitter twitter_updated)) + allow(Gitlab::OAuth::Provider).to receive(:names).and_return(%w(twitter twitter_updated)) visit admin_user_identities_path(@user) end @@ -131,10 +131,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps end step 'I modify twitter identity' do - within '.table' do - click_link 'Edit' - end - + find('.table').find(:link, 'Edit').click fill_in 'identity_extern_uid', with: '654321' select 'twitter_updated', from: 'identity_provider' click_button 'Save changes' |