Add regression test for MR title fallback

This commit is contained in:
Franz Liedke 2018-08-02 19:32:16 +02:00
parent 0fc5bc3145
commit 56a3f7b7c6
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
1 changed files with 4 additions and 0 deletions

View File

@ -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")