OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#47063] fixed file link download unit tests
Eric Schubert20dbd0c30231
diff --git a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rbindex f55f86546b0..91538924176 100644--- a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb+++ b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb@@ -620,7 +620,13 @@ describe 'API v3 file links resource' doget pathend- it { expect(subject.status).to be(404) }+ it 'fails with outbound request failure' do+ expect(subject.status).to be(500)++ body = JSON.parse(subject.body)+ expect(body['message']).to eq(I18n.t('api_v3.errors.code_500_outbound_request_failure', status_code: 404))+ expect(body['errorIdentifier']).to eq('urn:openproject-org:api:v3:errors:OutboundRequestFailure')+ endendend@@ -656,7 +662,13 @@ describe 'API v3 file links resource' dodescribe 'due to not found' dolet(:error) { :not_found }- it { expect(subject.status).to be(404) }+ it 'fails with outbound request failure' do+ expect(last_response.status).to be(500)++ body = JSON.parse(last_response.body)+ expect(body['message']).to eq(I18n.t('api_v3.errors.code_500_outbound_request_failure', status_code: 404))+ expect(body['errorIdentifier']).to eq('urn:openproject-org:api:v3:errors:OutboundRequestFailure')+ endendendend