diff --git a/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs b/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs index 0eff8bf46..01cee46ba 100644 --- a/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs +++ b/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs @@ -195,26 +195,25 @@ defmodule StateMediator.Integration.GtfsTest do assert [%{name: "Braintree - Alewife"}, %{name: "Ashmont - Alewife"}] = shapes_1 end - test "Providence/Stoughton has 2 non-ignored shapes each direction" do + test "Providence/Stoughton has 3 non-ignored shapes each direction" do [shapes_0, shapes_1] = shapes_in_both_directions("CR-Providence") - assert [%{name: "South Station - Wickford Junction"}, %{name: "South Station - Stoughton"}] = + assert [%{name: "South Station - Wickford Junction"}, %{id: "9890004"}, %{id: "SouthStationToStoughtonViaFairmount"}] = shapes_0 - assert [%{name: "Wickford Junction - South Station"}, %{name: "Stoughton - South Station"}] = + assert [%{name: "Wickford Junction - South Station"}, %{id: "9890003"}, %{id: "StoughtonToSouthStationViaFairmount"}] = shapes_1 end - # Disable Newburyport/Rockport Line check while Rockport Branch is closed, Fall 2022 - # test "Newburyport/Rockport has 2 non-ignored shapes each direction" do - # [shapes_0, shapes_1] = shapes_in_both_directions("CR-Newburyport") - # - # assert [%{name: "North Station - Rockport"}, %{name: "North Station - Newburyport"}] = - # shapes_0 - # - # assert [%{name: "Rockport - North Station"}, %{name: "Newburyport - North Station"}] = - # shapes_1 - # end + test "Newburyport/Rockport has 2 non-ignored shapes each direction" do + [shapes_0, shapes_1] = shapes_in_both_directions("CR-Newburyport") + + assert [%{name: "North Station - Rockport"}, %{name: "North Station - Newburyport"}] = + shapes_0 + + assert [%{name: "Rockport - North Station"}, %{name: "Newburyport - North Station"}] = + shapes_1 + end test "all shuttle shapes have negative priority" do invalid_shapes =