Add regression test for MR title fallback
This commit is contained in:
parent
0fc5bc3145
commit
56a3f7b7c6
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ describe MergeRequests::BuildService do
|
|||
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
|
||||
expected_description = [commit_description, closing_message].compact.join("\n\n")
|
||||
|
||||
|
|
Loading…
Reference in a new issue