Skip to content
Snippets Groups Projects
Commit 4acd1f5d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix tests for admin identities after migrate to rspec3

parent 8c6cbd43
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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'
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