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
iv
gitlab-ce
Commits
fe8552ef
Commit
fe8552ef
authored
Mar 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests to reopen MR
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
36b065e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
features/project/merge_requests.feature
features/project/merge_requests.feature
+7
-0
features/steps/project/project_merge_requests.rb
features/steps/project/project_merge_requests.rb
+12
-0
No files found.
features/project/merge_requests.feature
View file @
fe8552ef
...
...
@@ -29,6 +29,13 @@ Feature: Project Merge Requests
And
I click link
"Close"
Then
I should see closed merge request
"Bug NS-04"
Scenario
:
I
reopen merge request page
Given
I click link
"Bug NS-04"
And
I click link
"Close"
Then
I should see closed merge request
"Bug NS-04"
When
I click link
"Reopen"
Then
I should see reopened merge request
"Bug NS-04"
Scenario
:
I
submit new unassigned merge request
Given
I click link
"New Merge Request"
And
I submit new merge request
"Wiki Feature"
...
...
features/steps/project/project_merge_requests.rb
View file @
fe8552ef
...
...
@@ -170,6 +170,18 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "Reopen"'
do
within
'.page-title'
do
click_link
"Reopen"
end
end
step
'I should see reopened merge request "Bug NS-04"'
do
within
'.state-label'
do
page
.
should
have_content
"Open"
end
end
def
project
@project
||=
Project
.
find_by!
(
name:
"Shop"
)
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