diff options
author | Franz Liedke <franz@develophp.org> | 2018-08-02 19:32:16 +0200 |
---|---|---|
committer | Franz Liedke <franz@develophp.org> | 2018-08-25 23:02:34 +0200 |
commit | 56a3f7b7c65e87b73ec081dacea4cd04e7780c6f (patch) | |
tree | deec036d7fa8ac54dd62db8ee6fdfbe7fa3501d4 | |
parent | 0fc5bc3145296d6e91078cbcad0e01786c76bb40 (diff) | |
download | gitlab-ce-56a3f7b7c65e87b73ec081dacea4cd04e7780c6f.tar.gz |
Add regression test for MR title fallback
-rw-r--r-- | spec/services/merge_requests/build_service_spec.rb | 4 |
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") |