diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-17 16:12:16 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-17 18:44:15 +0300 |
commit | cc25c4c06c532eef592cb88440f271694faf97ef (patch) | |
tree | dd9ef986b2506078c153872015b018fa2573125f /spec/services/merge_requests | |
parent | 7a623907528a77187e070c9721469df8bdd00ec8 (diff) |
Allow creating merge request even if target branch is not specified in query params
Closes #28890
Diffstat (limited to 'spec/services/merge_requests')
-rw-r--r-- | spec/services/merge_requests/build_service_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/services/merge_requests/build_service_spec.rb b/spec/services/merge_requests/build_service_spec.rb index 0768f644036..adfa75a524f 100644 --- a/spec/services/merge_requests/build_service_spec.rb +++ b/spec/services/merge_requests/build_service_spec.rb @@ -49,10 +49,13 @@ describe MergeRequests::BuildService, services: true do let(:commits) { Commit.decorate([commit_1], project) } it 'creates compare object with target branch as default branch' do - expect(merge_request.can_be_created).to eq(false) expect(merge_request.compare).to be_present expect(merge_request.target_branch).to eq(project.default_branch) end + + it 'allows the merge request to be created' do + expect(merge_request.can_be_created).to eq(true) + end end context 'same source and target branch' do |