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 9cb2765a4205..5436ab37bd54 100644 --- a/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb +++ b/test/unit/app/presenters/publishing_api/organisation_presenter_test.rb @@ -136,7 +136,7 @@ def govspeak_to_html(govspeak) ) presented_item = present(organisation) - expected_image_url = "https://static.test.gov.uk" \ + 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 6d77f89f234e..4962c71e435d 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 = "( , , )" 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 8ebb0d2d0acf..3dfad17a06fc 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