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
Tatuya Kamada
gitlab-ce
Commits
566ea854
Commit
566ea854
authored
Sep 25, 2015
by
Pierre de La Morinerie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: extract a merge_request_path helper
parent
7e710acc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+7
-4
No files found.
features/steps/shared/paths.rb
View file @
566ea854
...
...
@@ -388,13 +388,11 @@ module SharedPaths
end
step
'I visit merge request page "Bug NS-04"'
do
mr
=
MergeRequest
.
find_by
(
title:
"Bug NS-04"
)
visit
namespace_project_merge_request_path
(
mr
.
target_project
.
namespace
,
mr
.
target_project
,
mr
)
visit
merge_request_path
(
"Bug NS-04"
)
end
step
'I visit merge request page "Bug NS-05"'
do
mr
=
MergeRequest
.
find_by
(
title:
"Bug NS-05"
)
visit
namespace_project_merge_request_path
(
mr
.
target_project
.
namespace
,
mr
.
target_project
,
mr
)
visit
merge_request_path
(
"Bug NS-05"
)
end
step
'I visit merge request page "Bug CO-01"'
do
...
...
@@ -503,6 +501,11 @@ module SharedPaths
Project
.
find_by!
(
name:
'Shop'
)
end
def
merge_request_path
(
title
)
mr
=
MergeRequest
.
find_by
(
title:
title
)
namespace_project_merge_request_path
(
mr
.
target_project
.
namespace
,
mr
.
target_project
,
mr
)
end
# ----------------------------------------
# Errors
# ----------------------------------------
...
...
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