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
Kazuhiko Shiozaki
gitlab-ce
Commits
92b36120
Commit
92b36120
authored
Oct 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve project_merge_requests.rb feature steps
parent
584117aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
features/steps/project/project_merge_requests.rb
features/steps/project/project_merge_requests.rb
+13
-7
No files found.
features/steps/project/project_merge_requests.rb
View file @
92b36120
...
@@ -21,7 +21,9 @@ class ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -21,7 +21,9 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
end
Then
'I should see merge request "Wiki Feature"'
do
Then
'I should see merge request "Wiki Feature"'
do
page
.
should
have_content
"Wiki Feature"
within
'.merge-request'
do
page
.
should
have_content
"Wiki Feature"
end
end
end
Then
'I should see closed merge request "Bug NS-04"'
do
Then
'I should see closed merge request "Bug NS-04"'
do
...
@@ -56,16 +58,20 @@ class ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -56,16 +58,20 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
end
And
'I submit new merge request "Wiki Feature"'
do
And
'I submit new merge request "Wiki Feature"'
do
#this must come first, so that the target branch is set by the time the "select" for "notes_refactoring" is executed
fill_in
"merge_request_title"
,
with:
"Wiki Feature"
select
project
.
path_with_namespace
,
:from
=>
"merge_request_target_project_id"
fill_in
"merge_request_title"
,
:with
=>
"Wiki Feature"
# this must come first, so that the target branch is set
select
"master"
,
:from
=>
"merge_request_source_branch"
# by the time the "select" for "notes_refactoring" is executed
select
project
.
path_with_namespace
,
from:
"merge_request_target_project_id"
select
"master"
,
from:
"merge_request_source_branch"
find
(
:select
,
"merge_request_target_project_id"
,
{}).
value
.
should
==
project
.
id
.
to_s
find
(
:select
,
"merge_request_target_project_id"
,
{}).
value
.
should
==
project
.
id
.
to_s
find
(
:select
,
"merge_request_source_project_id"
,
{}).
value
.
should
==
project
.
id
.
to_s
find
(
:select
,
"merge_request_source_project_id"
,
{}).
value
.
should
==
project
.
id
.
to_s
#using "notes_refactoring" because "Bug NS-04" uses master/stable, this will fail merge_request validation if the branches are the same
# using "notes_refactoring" because "Bug NS-04" uses master/stable,
# this will fail merge_request validation if the branches are the same
find
(
:select
,
"merge_request_target_branch"
,
{}).
find
(
:option
,
"notes_refactoring"
,
{}).
value
.
should
==
"notes_refactoring"
find
(
:select
,
"merge_request_target_branch"
,
{}).
find
(
:option
,
"notes_refactoring"
,
{}).
value
.
should
==
"notes_refactoring"
select
"notes_refactoring"
,
:from
=>
"merge_request_target_branch"
select
"notes_refactoring"
,
from:
"merge_request_target_branch"
click_button
"Submit merge request"
click_button
"Submit merge request"
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