Skip to content

Commit

Permalink
update holiday count in tests (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-mahoney authored Sep 4, 2019
1 parent a57c424 commit ce00087
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ defmodule SiteWeb.ScheduleControllerTest do
# builds a map
assert conn.assigns.map_img_src =~ "maps.googleapis.com"

# assigns 3 holidays
assert Enum.count(conn.assigns.holidays) == 3
# assigns 2 holidays
assert Enum.count(conn.assigns.holidays) == 2
end

test "Ferry data", %{conn: conn} do
Expand Down Expand Up @@ -377,10 +377,10 @@ defmodule SiteWeb.ScheduleControllerTest do
assert "place-nuniv" in stop_ids
end

test "assigns 3 holidays", %{conn: conn} do
test "assigns 2 holidays", %{conn: conn} do
conn = get(conn, line_path(conn, :show, "CR-Fitchburg"))

assert Enum.count(conn.assigns.holidays) == 3
assert Enum.count(conn.assigns.holidays) == 2
end

test "Bus line with variant", %{conn: conn} do
Expand Down

0 comments on commit ce00087

Please sign in to comment.