Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
3fe3cbf2
Commit
3fe3cbf2
authored
Jun 22, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indendity test
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
cc04c5b8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
app/views/admin/users/_head.html.haml
app/views/admin/users/_head.html.haml
+1
-1
features/admin/users.feature
features/admin/users.feature
+1
-0
features/steps/admin/users.rb
features/steps/admin/users.rb
+13
-5
No files found.
app/views/admin/users/_head.html.haml
View file @
3fe3cbf2
...
...
@@ -9,7 +9,7 @@
=
link_to
edit_admin_user_path
(
@user
),
class:
"btn btn-grouped"
do
%i
.fa.fa-pencil-square-o
Edit
%hr
%ul
.nav.nav-tabs
=
nav_link
(
path:
'users#show'
)
do
=
link_to
"Account"
,
admin_user_path
(
@user
)
...
...
features/admin/users.feature
View file @
3fe3cbf2
...
...
@@ -40,6 +40,7 @@ Feature: Admin Users
Given
user
"Pete"
with ssh keys
And
I visit admin users page
And
click on user
"Pete"
And
click on ssh keys tab
Then
I should see key list
And
I click on the key title
Then
I should see key details
...
...
features/steps/admin/users.rb
View file @
3fe3cbf2
...
...
@@ -121,23 +121,27 @@ 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)
)
visit
admin_user_identities_path
(
@user
)
end
step
'I should see twitter details'
do
expect
(
page
).
to
have_content
'
Identities for
Pete'
expect
(
page
).
to
have_content
'Pete'
expect
(
page
).
to
have_content
'twitter'
end
step
'I modify twitter identity'
do
within
'.table'
do
click_link
'Edit'
end
fill_in
'identity_extern_uid'
,
with:
'654321'
fill_in
'identity_provider'
,
with:
'twitter_updated
'
select
'twitter_updated'
,
from:
'identity_provider
'
click_button
'Save changes'
end
step
'I should see twitter details updated'
do
expect
(
page
).
to
have_content
'
Identities for
Pete'
expect
(
page
).
to
have_content
'Pete'
expect
(
page
).
to
have_content
'twitter_updated'
expect
(
page
).
to
have_content
'654321'
end
...
...
@@ -147,7 +151,11 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
end
step
'I should not see twitter details'
do
expect
(
page
).
to
have_content
'
Identities for
Pete'
expect
(
page
).
to
have_content
'Pete'
expect
(
page
).
to_not
have_content
'twitter'
end
step
'click on ssh keys tab'
do
click_link
'SSH keys'
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment