diff --git a/lib/content/audio/no_service.ex b/lib/content/audio/no_service.ex index ccc37d84..3dc70824 100644 --- a/lib/content/audio/no_service.ex +++ b/lib/content/audio/no_service.ex @@ -88,14 +88,14 @@ defmodule Content.Audio.NoService do shuttle = if(use_shuttle?, do: " Use shuttle.", else: "") cond do - destination -> - {:ok, destination_text} = PaEss.Utilities.destination_to_ad_hoc_string(destination) - "No #{destination_text} service.#{shuttle}" - use_routes? -> # Hardcoded for Union Square "No Train Service. Use routes 86, 87, or 91" + destination -> + {:ok, destination_text} = PaEss.Utilities.destination_to_ad_hoc_string(destination) + "No #{destination_text} service.#{shuttle}" + true -> line = if(route, do: "#{route} Line", else: "train") "There is no #{line} service at this station.#{shuttle}" diff --git a/test/content/audio/vehicles_to_destination_test.exs b/test/content/audio/vehicles_to_destination_test.exs index 065b3964..4fb822d1 100644 --- a/test/content/audio/vehicles_to_destination_test.exs +++ b/test/content/audio/vehicles_to_destination_test.exs @@ -32,7 +32,7 @@ defmodule Content.Audio.VehiclesToDestinationTest do end end - test "from_messags/2" do + test "from_messages/2" do assert [ %Content.Audio.VehiclesToDestination{ destination: :lechmere,