summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-10-19 10:07:56 +0000
committerRobert Speicher <robert@gitlab.com>2016-10-19 10:07:56 +0000
commit72af0e73833f06cfcd10126bc03c688358260e60 (patch)
tree514021670b798de37147e457d767aa72bb50b860 /spec/services
parentd22d8e8f4b8da299bcc34a051b254d0f69bb4cc4 (diff)
parent75b7ba3f7b89f10f7088b84b4594e747c571f016 (diff)
downloadgitlab-ce-72af0e73833f06cfcd10126bc03c688358260e60.tar.gz
Merge branch 'sh-improve-merge-service-logging' into 'master'
Improve error logging of MergeService Relates to #23505 See merge request !6975
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/merge_requests/merge_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/merge_requests/merge_service_spec.rb b/spec/services/merge_requests/merge_service_spec.rb
index ee53e110aee..9163c0c104e 100644
--- a/spec/services/merge_requests/merge_service_spec.rb
+++ b/spec/services/merge_requests/merge_service_spec.rb
@@ -120,13 +120,13 @@ describe MergeRequests::MergeService, services: true do
let(:service) { MergeRequests::MergeService.new(project, user, commit_message: 'Awesome message') }
it 'saves error if there is an exception' do
- allow(service).to receive(:repository).and_raise("error")
+ allow(service).to receive(:repository).and_raise("error message")
allow(service).to receive(:execute_hooks)
service.execute(merge_request)
- expect(merge_request.merge_error).to eq("Something went wrong during merge")
+ expect(merge_request.merge_error).to eq("Something went wrong during merge: error message")
end
it 'saves error if there is an PreReceiveError exception' do