summaryrefslogtreecommitdiff
path: root/spec/services/jira
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/jira')
-rw-r--r--spec/services/jira/requests/projects/list_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/jira/requests/projects/list_service_spec.rb b/spec/services/jira/requests/projects/list_service_spec.rb
index 415dd42c795..f7bcfa997df 100644
--- a/spec/services/jira/requests/projects/list_service_spec.rb
+++ b/spec/services/jira/requests/projects/list_service_spec.rb
@@ -45,6 +45,10 @@ RSpec.describe Jira::Requests::Projects::ListService do
end
it 'returns an error response' do
+ expect(Gitlab::ProjectServiceLogger).to receive(:error).with(
+ hash_including(
+ error: hash_including(:exception_class, :exception_message, :exception_backtrace)))
+ .and_call_original
expect(subject.error?).to be_truthy
expect(subject.message).to eq('Jira request error: Timeout::Error')
end