diff --git a/config/deps/endpoint.exs b/config/deps/endpoint.exs index 8b4135bd1d..78f876eedf 100644 --- a/config/deps/endpoint.exs +++ b/config/deps/endpoint.exs @@ -43,7 +43,3 @@ if config_env() == :dev do ] ] end - -if config_env() == :test do - config :dotcom, DotcomWeb.Endpoint, http: [port: 4002] -end diff --git a/test/cms/paragraph_test.exs b/test/cms/paragraph_test.exs index 8ce44ed951..e08b749966 100644 --- a/test/cms/paragraph_test.exs +++ b/test/cms/paragraph_test.exs @@ -320,12 +320,12 @@ defmodule CMS.ParagraphTest do assert safe_to_string(sub_topic_1.description) =~ ~s(

This is a similar description, but of a sub-topic. It can also have HTML in it.) - assert %File{ - description: "", - type: "application/pdf", - url: - "http://localhost:4002/sites/default/files/2021-10/2021-10-13-english-bus-network-redesign-public-meetings.pdf" - } = List.first(files) + file = List.first(files) + assert file.description == "" + assert file.type == "application/pdf" + + assert file.url =~ + "/sites/default/files/2021-10/2021-10-13-english-bus-network-redesign-public-meetings.pdf" assert %Link{ title: "Google", diff --git a/test/cms/partial/banner_test.exs b/test/cms/partial/banner_test.exs index 05765e2259..6eee18c833 100644 --- a/test/cms/partial/banner_test.exs +++ b/test/cms/partial/banner_test.exs @@ -111,6 +111,6 @@ defmodule CMS.Partial.BannerTest do assert thumb_alt == "Commuter Rail train crossing a bridge in Ashland" assert thumb_url =~ - "http://localhost:4002/sites/default/files/styles/important_notice/public/media/2018-09/P519%20Ashland_retouch.jpg?itok=5NKSY_ts" + "/sites/default/files/styles/important_notice/public/media/2018-09/P519%20Ashland_retouch.jpg?itok=5NKSY_ts" end end diff --git a/test/cms/partial/whats_happening_item_test.exs b/test/cms/partial/whats_happening_item_test.exs index 52c98705ec..7620d54945 100644 --- a/test/cms/partial/whats_happening_item_test.exs +++ b/test/cms/partial/whats_happening_item_test.exs @@ -38,7 +38,7 @@ defmodule CMS.Partial.WhatsHappeningItemTest do assert alt == "A bus at night in downtown Boston, Photo by Osman Rana, via Unsplash." assert url =~ - "http://localhost:4002/sites/default/files/styles/whats_happening" <> + "/sites/default/files/styles/whats_happening" <> "/public/projects/late-night-bus/night-bus-by-osman-rana-unsplash.jpg?itok=K3LGpv53" end