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
1
Merge Requests
1
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
nexedi
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
...
@@ -388,13 +388,11 @@ module SharedPaths
end
end
step
'I visit merge request page "Bug NS-04"'
do
step
'I visit merge request page "Bug NS-04"'
do
mr
=
MergeRequest
.
find_by
(
title:
"Bug NS-04"
)
visit
merge_request_path
(
"Bug NS-04"
)
visit
namespace_project_merge_request_path
(
mr
.
target_project
.
namespace
,
mr
.
target_project
,
mr
)
end
end
step
'I visit merge request page "Bug NS-05"'
do
step
'I visit merge request page "Bug NS-05"'
do
mr
=
MergeRequest
.
find_by
(
title:
"Bug NS-05"
)
visit
merge_request_path
(
"Bug NS-05"
)
visit
namespace_project_merge_request_path
(
mr
.
target_project
.
namespace
,
mr
.
target_project
,
mr
)
end
end
step
'I visit merge request page "Bug CO-01"'
do
step
'I visit merge request page "Bug CO-01"'
do
...
@@ -503,6 +501,11 @@ module SharedPaths
...
@@ -503,6 +501,11 @@ module SharedPaths
Project
.
find_by!
(
name:
'Shop'
)
Project
.
find_by!
(
name:
'Shop'
)
end
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
# 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