BigW Consortium Gitlab

Commit 4acd1f5d by Dmitriy Zaporozhets

Fix tests for admin identities after migrate to rspec3

parent 8c6cbd43
...@@ -121,7 +121,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps ...@@ -121,7 +121,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
end end
step 'I visit "Pete" identities page in admin' do 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) visit admin_user_identities_path(@user)
end end
...@@ -131,10 +131,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps ...@@ -131,10 +131,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
end end
step 'I modify twitter identity' do step 'I modify twitter identity' do
within '.table' do find('.table').find(:link, 'Edit').click
click_link 'Edit'
end
fill_in 'identity_extern_uid', with: '654321' fill_in 'identity_extern_uid', with: '654321'
select 'twitter_updated', from: 'identity_provider' select 'twitter_updated', from: 'identity_provider'
click_button 'Save changes' click_button 'Save changes'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment