diff --git a/apps/site/lib/site_web/views/helpers.ex b/apps/site/lib/site_web/views/helpers.ex index fed05b34eb..1ff99ce248 100644 --- a/apps/site/lib/site_web/views/helpers.ex +++ b/apps/site/lib/site_web/views/helpers.ex @@ -102,7 +102,7 @@ defmodule SiteWeb.ViewHelpers do but at least earmarks them for easy identification or if we need to change our frontend<->CMS linking strategy in the future. """ - @spec cms_static_page_path(module | Plug.Conn.t(), String.t()) :: String.t() + @spec cms_static_page_path(module | Plug.Conn.t(), String.t() | iolist()) :: String.t() def cms_static_page_path(_conn, path), do: path def google_tag_manager_id do diff --git a/apps/site/test/site_web/views/schedule_view_test.exs b/apps/site/test/site_web/views/schedule_view_test.exs index f7b56298e5..49f2995ae0 100644 --- a/apps/site/test/site_web/views/schedule_view_test.exs +++ b/apps/site/test/site_web/views/schedule_view_test.exs @@ -310,7 +310,7 @@ defmodule SiteWeb.ScheduleViewTest do ) assert safe_to_string(actual) =~ - "/fares/commuter_rail?destination=Fitchburg&origin=place-north" + "/fares/commuter-rail-fares" end test "the fare description is Round trip fare if it's a round-trip fare", %{conn: conn} do