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
Boxiang Sun
gitlab-ce
Commits
9214e273
Commit
9214e273
authored
Jun 19, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5 fix expected: 1 time with arguments: (97, anything, {"squash"=>false}) received: 0 times
parent
d229e7d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
changelogs/unreleased/rails5-fix-48104.yml
changelogs/unreleased/rails5-fix-48104.yml
+6
-0
spec/controllers/projects/merge_requests_controller_spec.rb
spec/controllers/projects/merge_requests_controller_spec.rb
+6
-1
No files found.
changelogs/unreleased/rails5-fix-48104.yml
0 → 100644
View file @
9214e273
---
title
:
'
Rails5
fix
expected:
1
time
with
arguments:
(97,
anything,
{"squash"=>false})
received:
0
times'
merge_request
:
20004
author
:
Jasper Maes
type
:
fixed
spec/controllers/projects/merge_requests_controller_spec.rb
View file @
9214e273
...
...
@@ -337,7 +337,12 @@ describe Projects::MergeRequestsController do
context
'when the sha parameter matches the source SHA'
do
def
merge_with_sha
(
params
=
{})
post
:merge
,
base_params
.
merge
(
sha:
merge_request
.
diff_head_sha
).
merge
(
params
)
post_params
=
base_params
.
merge
(
sha:
merge_request
.
diff_head_sha
).
merge
(
params
)
if
Gitlab
.
rails5?
post
:merge
,
params:
post_params
,
as: :json
else
post
:merge
,
post_params
end
end
it
'returns :success'
do
...
...
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