Add regression test for MR title fallback
This commit is contained in:
parent
0fc5bc3145
commit
56a3f7b7c6
|
@ -169,6 +169,10 @@ describe MergeRequests::BuildService do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'uses the title of the commit as the title of the merge request' do
|
||||||
|
expect(merge_request.title).to eq('Initial commit')
|
||||||
|
end
|
||||||
|
|
||||||
it 'appends the closing description' do
|
it 'appends the closing description' do
|
||||||
expected_description = [commit_description, closing_message].compact.join("\n\n")
|
expected_description = [commit_description, closing_message].compact.join("\n\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue