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
Léo-Paul Géneau
gitlab-ce
Commits
593dfc40
Commit
593dfc40
authored
Jun 15, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIx userteams tests
parent
48e5dff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
21 deletions
+5
-21
features/steps/userteams/userteams.rb
features/steps/userteams/userteams.rb
+5
-21
No files found.
features/steps/userteams/userteams.rb
View file @
593dfc40
...
@@ -131,9 +131,7 @@ class Userteams < Spinach::FeatureSteps
...
@@ -131,9 +131,7 @@ class Userteams < Spinach::FeatureSteps
Given
'project from team has merge requests assigned to me'
do
Given
'project from team has merge requests assigned to me'
do
team
=
UserTeam
.
last
team
=
UserTeam
.
last
team
.
projects
.
each
do
|
project
|
team
.
projects
.
each
do
|
project
|
team
.
members
.
each
do
|
member
|
create
(
:merge_request
,
assignee:
current_user
,
project:
project
)
3
.
times
{
create
(
:merge_request
,
assignee:
member
,
project:
project
)
}
end
end
end
end
end
...
@@ -145,10 +143,8 @@ class Userteams < Spinach::FeatureSteps
...
@@ -145,10 +143,8 @@ class Userteams < Spinach::FeatureSteps
Then
'I should see merge requests from this team assigned to me'
do
Then
'I should see merge requests from this team assigned to me'
do
team
=
UserTeam
.
last
team
=
UserTeam
.
last
team
.
projects
.
each
do
|
project
|
team
.
projects
.
each
do
|
project
|
team
.
members
.
each
do
|
member
|
project
.
merge_requests
.
each
do
|
merge_request
|
project
.
issues
.
assigned
(
member
).
each
do
|
merge_request
|
page
.
should
have_content
merge_request
.
title
page
.
should
have_content
merge_request
.
title
end
end
end
end
end
end
end
...
@@ -156,20 +152,8 @@ class Userteams < Spinach::FeatureSteps
...
@@ -156,20 +152,8 @@ class Userteams < Spinach::FeatureSteps
Given
'project from team has merge requests assigned to team members'
do
Given
'project from team has merge requests assigned to team members'
do
team
=
UserTeam
.
last
team
=
UserTeam
.
last
team
.
projects
.
each
do
|
project
|
team
.
projects
.
each
do
|
project
|
team
.
members
.
each
do
|
member
|
member
=
team
.
members
.
sample
3
.
times
{
create
(
:merge_request
,
assignee:
member
,
project:
project
)
}
create
(
:merge_request
,
assignee:
member
,
project:
project
)
end
end
end
Then
'I should see merge requests from this team assigned to me'
do
team
=
UserTeam
.
last
team
.
projects
.
each
do
|
project
|
team
.
members
.
each
do
|
member
|
project
.
issues
.
assigned
(
member
).
each
do
|
merge_request
|
page
.
should
have_content
merge_request
.
title
end
end
end
end
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