diff --git a/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb b/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb index 9cb2765a420..9353aba6453 100644 --- a/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb +++ b/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb @@ -136,8 +136,7 @@ def govspeak_to_html(govspeak) ) presented_item = present(organisation) - expected_image_url = "https://static.test.gov.uk" \ - "/government/uploads/system/uploads/organisation/logo/#{organisation.logo.model.id}/960x640_jpeg.jpg" + expected_image_url = "#{Plek.asset_root}/government/uploads/system/uploads/organisation/logo/#{organisation.logo.model.id}/960x640_jpeg.jpg" assert_equal( { diff --git a/test/unit/app/presenters/publishing_api/worldwide_organisation_presenter_test.rb b/test/unit/app/presenters/publishing_api/worldwide_organisation_presenter_test.rb index 6d77f89f234..4962c71e435 100644 --- a/test/unit/app/presenters/publishing_api/worldwide_organisation_presenter_test.rb +++ b/test/unit/app/presenters/publishing_api/worldwide_organisation_presenter_test.rb @@ -124,7 +124,7 @@ def present(...) worldwide_organisation: worldwide_org, attachments: [create(:file_attachment)]) expected_body_text = "

Some stuff and some attachments" - expected_body_attachment_link = Regexp.new(/file-attachment-title-\d+<\/a>/) + expected_body_attachment_link = Regexp.new(/file-attachment-title-\d+<\/a>/) expected_body_attachment_metadata = "(PDF, 3.39 KB, 1 page)" presented_item = present(worldwide_org) diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 8ebb0d2d0ac..3dfad17a06f 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -60,7 +60,7 @@ def stub_asset_downloads # Stub requests for asset files # and respond with the requested fixture file - urls_starting = "https://static.test.gov.uk/government/uploads/system/uploads/" + urls_starting = "#{Plek.asset_root}/government/uploads/system/uploads/" stub_request(:get, %r{^#{Regexp.escape(urls_starting)}}) .to_return do |request| fixture_name = request.uri.to_s.split("/").last