BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
67b82e90
Commit
67b82e90
authored
Apr 12, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix random failing test
parent
ef2c8593
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
_team.html.haml
app/views/team_members/_team.html.haml
+4
-3
team_management.feature
features/project/team_management.feature
+0
-1
project_team_management.rb
features/steps/project/project_team_management.rb
+9
-9
No files found.
app/views/team_members/_team.html.haml
View file @
67b82e90
-
team
.
each
do
|
access
,
members
|
-
team
.
each
do
|
access
,
members
|
.ui-box
-
role
=
Project
.
access_options
.
key
(
access
).
pluralize
.ui-box
{
class:
role
.
downcase
}
%h5
.title
%h5
.title
=
Project
.
access_options
.
key
(
access
).
pluraliz
e
=
rol
e
%s
mall
=
members
.
size
%s
pan
.light
(
#{
members
.
size
}
)
%ul
.well-list
%ul
.well-list
-
members
.
sort_by
(
&
:user_name
).
each
do
|
team_member
|
-
members
.
sort_by
(
&
:user_name
).
each
do
|
team_member
|
=
render
'team_members/team_member'
,
member:
team_member
=
render
'team_members/team_member'
,
member:
team_member
features/project/team_management.feature
View file @
67b82e90
...
@@ -21,7 +21,6 @@ Feature: Project Team management
...
@@ -21,7 +21,6 @@ Feature: Project Team management
Scenario
:
Update user access
Scenario
:
Update user access
Given
I should see
"Sam"
in team list as
"Developer"
Given
I should see
"Sam"
in team list as
"Developer"
And
I change
"Sam"
role to
"Reporter"
And
I change
"Sam"
role to
"Reporter"
Then
I visit project
"Shop"
team page
And
I should see
"Sam"
in team list as
"Reporter"
And
I should see
"Sam"
in team list as
"Reporter"
Scenario
:
Cancel team member
Scenario
:
Cancel team member
...
...
features/steps/project/project_team_management.rb
View file @
67b82e90
...
@@ -30,15 +30,15 @@ class ProjectTeamManagement < Spinach::FeatureSteps
...
@@ -30,15 +30,15 @@ class ProjectTeamManagement < Spinach::FeatureSteps
end
end
Then
'I should see "Mike" in team list as "Reporter"'
do
Then
'I should see "Mike" in team list as "Reporter"'
do
user
=
User
.
find_by_name
(
"Mike"
)
within
'.reporters'
do
role_id
=
find
(
".user_
#{
user
.
id
}
#team_member_project_access"
).
value
page
.
should
have_content
(
'Mike'
)
role_id
.
should
==
UsersProject
.
access_roles
[
"Reporter"
].
to_s
end
end
end
Given
'I should see "Sam" in team list as "Developer"'
do
Given
'I should see "Sam" in team list as "Developer"'
do
user
=
User
.
find_by_name
(
"Sam"
)
within
'.developers'
do
role_id
=
find
(
".user_
#{
user
.
id
}
#team_member_project_access"
).
value
page
.
should
have_content
(
'Sam'
)
role_id
.
should
==
UsersProject
.
access_roles
[
"Developer"
].
to_s
end
end
end
And
'I change "Sam" role to "Reporter"'
do
And
'I change "Sam" role to "Reporter"'
do
...
@@ -49,9 +49,9 @@ class ProjectTeamManagement < Spinach::FeatureSteps
...
@@ -49,9 +49,9 @@ class ProjectTeamManagement < Spinach::FeatureSteps
end
end
And
'I should see "Sam" in team list as "Reporter"'
do
And
'I should see "Sam" in team list as "Reporter"'
do
user
=
User
.
find_by_name
(
"Sam"
)
within
'.reporters'
do
role_id
=
find
(
".user_
#{
user
.
id
}
#team_member_project_access"
).
value
page
.
should
have_content
(
'Sam'
)
role_id
.
should
==
UsersProject
.
access_roles
[
"Reporter"
].
to_s
end
end
end
And
'I click link "Remove from team"'
do
And
'I click link "Remove from team"'
do
...
...
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