summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranz Liedke <franz@develophp.org>2018-08-02 19:32:16 +0200
committerFranz Liedke <franz@develophp.org>2018-08-25 23:02:34 +0200
commit56a3f7b7c65e87b73ec081dacea4cd04e7780c6f (patch)
treedeec036d7fa8ac54dd62db8ee6fdfbe7fa3501d4
parent0fc5bc3145296d6e91078cbcad0e01786c76bb40 (diff)
downloadgitlab-ce-56a3f7b7c65e87b73ec081dacea4cd04e7780c6f.tar.gz
Add regression test for MR title fallback
-rw-r--r--spec/services/merge_requests/build_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/merge_requests/build_service_spec.rb b/spec/services/merge_requests/build_service_spec.rb
index 6aed481939e..0ced5d1b6d6 100644
--- a/spec/services/merge_requests/build_service_spec.rb
+++ b/spec/services/merge_requests/build_service_spec.rb
@@ -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")