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
iv
gitlab-ce
Commits
1a09a805
Commit
1a09a805
authored
Oct 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-500-admin-user-page' into 'master'
Fix 500 admin user page See merge request !1147
parents
71fce0b2
92967889
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+1
-1
features/admin/users.feature
features/admin/users.feature
+6
-0
features/steps/admin/users.rb
features/steps/admin/users.rb
+19
-0
No files found.
app/views/admin/users/show.html.haml
View file @
1a09a805
...
...
@@ -171,7 +171,7 @@
.pull-right
%span
.light
=
user_group
.
human_access
-
unless
user_group
.
owner?
=
link_to
group_
users_group
_path
(
group
,
user_group
),
data:
{
confirm:
remove_user_from_group_message
(
group
,
@user
)
},
method: :delete
,
remote:
true
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from group'
do
=
link_to
group_
group_member
_path
(
group
,
user_group
),
data:
{
confirm:
remove_user_from_group_message
(
group
,
@user
)
},
method: :delete
,
remote:
true
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from group'
do
%i
.icon-remove.icon-white
-
else
.nothing-here-block
This user has no groups.
...
...
features/admin/users.feature
View file @
1a09a805
...
...
@@ -16,6 +16,12 @@ Feature: Admin Users
Then
See username error message
And
Not changed form action url
Scenario
:
Show user attributes
Given
user
"Mike"
with groups and projects
Given
I visit admin users page
And
click on
"Mike"
link
Then
I should see user
"Mike"
details
Scenario
:
Edit my user attributes
Given
I visit admin users page
And
click edit on my user
...
...
features/steps/admin/users.rb
View file @
1a09a805
...
...
@@ -63,4 +63,23 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps
step
'I should not see secondary email anymore'
do
page
.
should_not
have_content
"Secondary email:"
end
step
'user "Mike" with groups and projects'
do
user
=
create
(
:user
,
name:
'Mike'
)
project
=
create
(
:empty_project
)
project
.
team
<<
[
user
,
:developer
]
group
=
create
(
:group
)
group
.
add_user
(
user
,
Gitlab
::
Access
::
DEVELOPER
)
end
step
'click on "Mike" link'
do
click_link
"Mike"
end
step
'I should see user "Mike" details'
do
page
.
should
have_content
'Account'
page
.
should
have_content
'Personal projects limit'
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