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
dfbfe5d0
Commit
dfbfe5d0
authored
Nov 14, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflict in merge_service_spec.rb
parent
cc9d3617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
spec/services/merge_requests/merge_service_spec.rb
spec/services/merge_requests/merge_service_spec.rb
+0
-24
No files found.
spec/services/merge_requests/merge_service_spec.rb
View file @
dfbfe5d0
...
...
@@ -249,7 +249,6 @@ describe MergeRequests::MergeService do
expect
(
Rails
.
logger
).
to
have_received
(
:error
).
with
(
a_string_matching
(
error_message
))
end
<<<<<<<
HEAD
context
'when squashing'
do
before
do
merge_request
.
update!
(
source_branch:
'master'
,
target_branch:
'feature'
)
...
...
@@ -357,29 +356,6 @@ describe MergeRequests::MergeService do
expect
(
service
.
hooks_validation_pass?
(
merge_request
)).
to
be_truthy
end
=======
context
"when fast-forward merge is not allowed"
do
before
do
allow_any_instance_of
(
Repository
).
to
receive
(
:ancestor?
).
and_return
(
nil
)
end
%w(semi-linear ff)
.
each
do
|
merge_method
|
it
"logs and saves error if merge is
#{
merge_method
}
only"
do
merge_method
=
'rebase_merge'
if
merge_method
==
'semi-linear'
merge_request
.
project
.
update
(
merge_method:
merge_method
)
error_message
=
'Only fast-forward merge is allowed for your project. Please update your source branch'
allow
(
service
).
to
receive
(
:execute_hooks
)
service
.
execute
(
merge_request
)
expect
(
merge_request
).
to
be_open
expect
(
merge_request
.
merge_commit_sha
).
to
be_nil
expect
(
merge_request
.
merge_error
).
to
include
(
error_message
)
expect
(
Rails
.
logger
).
to
have_received
(
:error
).
with
(
a_string_matching
(
error_message
))
end
end
end
>>>>>>>
ce
-
com
/
master
end
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