From ffbad1c89b3ee4cd4a821e9c9dbb804b05545ed4 Mon Sep 17 00:00:00 2001 From: Meaghan Harty <1829246+meagonqz@users.noreply.github.com> Date: Wed, 24 Jul 2019 15:24:55 -0400 Subject: [PATCH] Dialyzer and test fixup (#114) --- apps/site/lib/site_web/views/helpers.ex | 2 +- apps/site/test/site_web/views/schedule_view_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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