Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/error_tracking/list_issues_service_spec.rb')
-rw-r--r--spec/services/error_tracking/list_issues_service_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/services/error_tracking/list_issues_service_spec.rb b/spec/services/error_tracking/list_issues_service_spec.rb
index 518f2a80826..b49095ab8b9 100644
--- a/spec/services/error_tracking/list_issues_service_spec.rb
+++ b/spec/services/error_tracking/list_issues_service_spec.rb
@@ -52,6 +52,20 @@ RSpec.describe ErrorTracking::ListIssuesService do
include_examples 'error tracking service unauthorized user'
include_examples 'error tracking service disabled'
+
+ context 'integrated error tracking' do
+ let_it_be(:error) { create(:error_tracking_error, project: project) }
+
+ before do
+ error_tracking_setting.update!(integrated: true)
+ end
+
+ it 'returns the error in expected format' do
+ expect(result[:status]).to eq(:success)
+ expect(result[:issues].size).to eq(1)
+ expect(result[:issues].first.to_json).to eq(error.to_sentry_error.to_json)
+ end
+ end
end
describe '#external_url' do