diff options
Diffstat (limited to 'spec/services/ci/compare_test_reports_service_spec.rb')
-rw-r--r-- | spec/services/ci/compare_test_reports_service_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/services/ci/compare_test_reports_service_spec.rb b/spec/services/ci/compare_test_reports_service_spec.rb index f5edd3a552d..46f4d2d42ff 100644 --- a/spec/services/ci/compare_test_reports_service_spec.rb +++ b/spec/services/ci/compare_test_reports_service_spec.rb @@ -38,9 +38,10 @@ describe Ci::CompareTestReportsService do create(:ci_job_artifact, :junit_with_corrupted_data, job: build, project: project) end - it 'returns status and error message' do - expect(subject[:status]).to eq(:error) - expect(subject[:status_reason]).to include('XML parsing failed') + it 'returns a parsed TestReports success status and failure on the individual suite' do + expect(subject[:status]).to eq(:parsed) + expect(subject.dig(:data, 'status')).to eq('success') + expect(subject.dig(:data, 'suites', 0, 'status') ).to eq('error') end end end |