Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update text for Union Square Shuttles to replace 86 with 109 #857

Merged
merged 3 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/content/audio/no_service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ defmodule Content.Audio.NoService do
cond do
use_shuttle? -> " Use shuttle."
# Hardcoded for Union Square
use_routes? -> " Use routes 86, 87, or 91"
use_routes? -> " Use Routes 87, 91, or 109"
true -> ""
end

Expand Down
2 changes: 1 addition & 1 deletion lib/content/message/alert/use_routes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Content.Message.Alert.UseRoutes do

defimpl Content.Message do
def to_string(_) do
"Use Routes 86, 87, or 91"
"Use Routes 87, 91 or 109"
end
end
end
6 changes: 3 additions & 3 deletions test/signs/realtime_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,10 +1622,10 @@ defmodule Signs.RealtimeTest do
text_zone: "x"
}

expect_messages({"No Southbound svc", "Use Routes 86, 87, or 91"})
expect_messages({"No Southbound svc", "Use Routes 87, 91 or 109"})

expect_audios([{:ad_hoc, {"No Southbound service. Use routes 86, 87, or 91", :audio}}], [
{"No Southbound service. Use routes 86, 87, or 91", nil}
expect_audios([{:ad_hoc, {"No Southbound service. Use Routes 87, 91, or 109", :audio}}], [
{"No Southbound service. Use Routes 87, 91, or 109", nil}
])

Signs.Realtime.handle_info(:run_loop, sign)
Expand Down
Loading