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
Boxiang Sun
gitlab-ce
Commits
2864aca4
Commit
2864aca4
authored
Jun 20, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix admin:groups test
parent
f47ba909
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+1
-1
features/steps/admin/admin_groups.rb
features/steps/admin/admin_groups.rb
+5
-2
No files found.
app/views/admin/groups/show.html.haml
View file @
2864aca4
...
...
@@ -83,7 +83,7 @@
Users from
#{
@group
.
name
}
Group
%small
(
#{
@group
.
users_groups
.
count
}
)
%ul
.well-list
%ul
.well-list
.group-users-list
-
@group
.
users_groups
.
order
(
'group_access DESC'
).
each
do
|
member
|
-
user
=
member
.
user
%li
{
class:
dom_class
(
user
)}
...
...
features/steps/admin/admin_groups.rb
View file @
2864aca4
...
...
@@ -43,13 +43,16 @@ class AdminGroups < Spinach::FeatureSteps
user
=
User
.
find_by_name
(
"John"
)
select2
(
user
.
id
,
from:
"#user_ids"
,
multiple:
true
)
within
"#new_team_member"
do
select
"Reporter"
,
from:
"
project
_access"
select
"Reporter"
,
from:
"
group
_access"
end
click_button
"Add users into group"
end
Then
'I should see "John" in team list in every project as "Reporter"'
do
user
=
User
.
find_by_name
(
"John"
)
within
".group-users-list"
do
page
.
should
have_content
"John"
page
.
should
have_content
"Reporter"
end
end
protected
...
...
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