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
82eb948b
Commit
82eb948b
authored
Jan 12, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
parent
f2f4f3ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
Gemfile.lock
Gemfile.lock
+1
-1
app/services/git_push_service.rb
app/services/git_push_service.rb
+1
-1
features/project/ff_merge_requests.feature
features/project/ff_merge_requests.feature
+0
-2
features/steps/project/ff_merge_requests.rb
features/steps/project/ff_merge_requests.rb
+1
-7
No files found.
Gemfile.lock
View file @
82eb948b
...
@@ -985,4 +985,4 @@ DEPENDENCIES
...
@@ -985,4 +985,4 @@ DEPENDENCIES
wikicloth (= 0.8.1)
wikicloth (= 0.8.1)
BUNDLED WITH
BUNDLED WITH
1.1
0.6
1.1
1.2
app/services/git_push_service.rb
View file @
82eb948b
...
@@ -94,7 +94,7 @@ class GitPushService
...
@@ -94,7 +94,7 @@ class GitPushService
Issues
::
CloseService
.
new
(
project
,
authors
[
commit
],
{}).
execute
(
issue
,
commit
)
Issues
::
CloseService
.
new
(
project
,
authors
[
commit
],
{}).
execute
(
issue
,
commit
)
end
end
end
end
commit
.
create_cross_references!
(
authors
[
commit
],
closed_issues
)
commit
.
create_cross_references!
(
authors
[
commit
],
closed_issues
)
end
end
end
end
...
...
features/project/ff_merge_requests.feature
View file @
82eb948b
...
@@ -22,7 +22,6 @@ Feature: Project Ff Merge Requests
...
@@ -22,7 +22,6 @@ Feature: Project Ff Merge Requests
Then
I should see rebase button
Then
I should see rebase button
When
I press rebase button
When
I press rebase button
Then
I should see rebase in progress message
Then
I should see rebase in progress message
And
I should see ff-only merge button
@javascript
@javascript
Scenario
:
I
do rebase before regular merge
Scenario
:
I
do rebase before regular merge
...
@@ -31,4 +30,3 @@ Feature: Project Ff Merge Requests
...
@@ -31,4 +30,3 @@ Feature: Project Ff Merge Requests
Then
I should see rebase button
Then
I should see rebase button
When
I press rebase button
When
I press rebase button
Then
I should see rebase in progress message
Then
I should see rebase in progress message
And
I should see regular merge button
features/steps/project/ff_merge_requests.rb
View file @
82eb948b
...
@@ -25,11 +25,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
...
@@ -25,11 +25,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
expect
(
page
).
to
have_button
'Accept Merge Request'
expect
(
page
).
to
have_button
'Accept Merge Request'
end
end
step
'I should see regular merge button'
do
expect
(
page
).
to
have_content
"Modify commit message"
expect
(
page
).
to
have_button
'Accept Merge Request'
end
step
'merge request "Bug NS-05" is mergeable'
do
step
'merge request "Bug NS-05" is mergeable'
do
merge_request
.
mark_as_mergeable
merge_request
.
mark_as_mergeable
end
end
...
@@ -41,7 +36,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
...
@@ -41,7 +36,7 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
end
end
step
'I should see merged request'
do
step
'I should see merged request'
do
page
.
within
'.
issue
-box'
do
page
.
within
'.
status
-box'
do
expect
(
page
).
to
have_content
"Merged"
expect
(
page
).
to
have_content
"Merged"
end
end
end
end
...
@@ -70,7 +65,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
...
@@ -70,7 +65,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
end
end
step
'I press rebase button'
do
step
'I press rebase button'
do
allow
(
RebaseWorker
).
to
receive
(
:perform_async
){
true
}
click_button
"Rebase"
click_button
"Rebase"
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