summaryrefslogtreecommitdiff
path: root/spec/requests/api/v3
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-20 17:41:11 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-07 11:46:23 +0200
commit70716a1292ca5910908ba37a9d113c8b5a221bb7 (patch)
treeebff7a1289e85444170669761fcd2233a5757d54 /spec/requests/api/v3
parentd328007214786c7137c31d2c73e9ee76b025e6ed (diff)
downloadgitlab-ce-70716a1292ca5910908ba37a9d113c8b5a221bb7.tar.gz
Allow creating merge requests across forks of a project
Diffstat (limited to 'spec/requests/api/v3')
-rw-r--r--spec/requests/api/v3/merge_requests_spec.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/requests/api/v3/merge_requests_spec.rb b/spec/requests/api/v3/merge_requests_spec.rb
index 86f38dd4ec1..acd53fbff66 100644
--- a/spec/requests/api/v3/merge_requests_spec.rb
+++ b/spec/requests/api/v3/merge_requests_spec.rb
@@ -372,16 +372,6 @@ describe API::MergeRequests do
end
context 'when target_branch is specified' do
- it 'returns 422 if not a forked project' do
- post v3_api("/projects/#{project.id}/merge_requests", user),
- title: 'Test merge_request',
- target_branch: 'master',
- source_branch: 'markdown',
- author: user,
- target_project_id: fork_project.id
- expect(response).to have_gitlab_http_status(422)
- end
-
it 'returns 422 if targeting a different fork' do
post v3_api("/projects/#{fork_project.id}/merge_requests", user2),
title: 'Test merge_request',