Skip to content

Commit

Permalink
Dialyzer and test fixup (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
meagonqz authored Jul 24, 2019
1 parent 0d2a7f1 commit ffbad1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/site/lib/site_web/views/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/site/test/site_web/views/schedule_view_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ defmodule SiteWeb.ScheduleViewTest do
)

assert safe_to_string(actual) =~
"/fares/commuter_rail?destination=Fitchburg&amp;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
Expand Down

0 comments on commit ffbad1c

Please sign in to comment.