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
08728cb3
Commit
08728cb3
authored
Nov 11, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move spec to check on MR page instead of Issues page
parent
f20875ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
spec/features/merge_requests/filter_by_labels_spec.rb
spec/features/merge_requests/filter_by_labels_spec.rb
+14
-12
No files found.
spec/features/
issue
s/filter_by_labels_spec.rb
→
spec/features/
merge_request
s/filter_by_labels_spec.rb
View file @
08728cb3
...
@@ -7,25 +7,27 @@ feature 'Issue filtering by Labels', feature: true, js: true do
...
@@ -7,25 +7,27 @@ feature 'Issue filtering by Labels', feature: true, js: true do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:label
)
{
create
(
:label
,
project:
project
)
}
let!
(
:label
)
{
create
(
:label
,
project:
project
)
}
before
do
let!
(
:bug
)
{
create
(
:label
,
project:
project
,
title:
'bug'
)
}
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
let!
(
:feature
)
{
create
(
:label
,
project:
project
,
title:
'feature'
)
}
feature
=
create
(
:label
,
project:
project
,
title:
'feature'
)
let!
(
:enhancement
)
{
create
(
:label
,
project:
project
,
title:
'enhancement'
)
}
enhancement
=
create
(
:label
,
project:
project
,
title:
'enhancement'
)
let!
(
:mr1
)
{
create
(
:merge_request
,
title:
"Bugfix1"
,
source_project:
project
,
target_project:
project
,
source_branch:
"bugfix1"
)
}
let!
(
:mr2
)
{
create
(
:merge_request
,
title
:"Bugfix2"
,
source_project:
project
,
target_project:
project
,
source_branch:
"bugfix2"
)
}
let!
(
:mr3
)
{
create
(
:merge_request
,
title:
"Feature1"
,
source_project:
project
,
target_project:
project
,
source_branch:
"feature1"
)
}
issue1
=
create
(
:issue
,
title:
"Bugfix1"
,
project:
project
)
before
do
issue
1
.
labels
<<
bug
mr
1
.
labels
<<
bug
issue2
=
create
(
:issue
,
title:
"Bugfix2"
,
project:
project
)
mr2
.
labels
<<
bug
issue2
.
labels
<<
bug
mr2
.
labels
<<
enhancement
issue2
.
labels
<<
enhancement
issue3
=
create
(
:issue
,
title:
"Feature1"
,
project:
project
)
mr3
.
title
=
"Feature1"
issue
3
.
labels
<<
feature
mr
3
.
labels
<<
feature
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
login_as
(
user
)
visit
namespace_project_
issue
s_path
(
project
.
namespace
,
project
)
visit
namespace_project_
merge_request
s_path
(
project
.
namespace
,
project
)
end
end
context
'filter by label bug'
do
context
'filter by label bug'
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