Commit 56a3f7b7 authored by Franz Liedke's avatar Franz Liedke

Add regression test for MR title fallback

parent 0fc5bc31
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment