Use _path in all cases where we are not potentially changing the domain

This commit is contained in:
David Heinemeier Hansson
2025-04-13 08:17:36 +02:00
parent 7b60748796
commit dbf61f4fc3
28 changed files with 82 additions and 82 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ class EventsControllerTest < ActionDispatch::IntegrationTest
end
test "index" do
get events_url
get events_path
assert_select "div.event__wrapper[style='grid-area: 17/2']" do
assert_select "strong", text: "David assigned JZ to Layout is broken"
@@ -19,7 +19,7 @@ class EventsControllerTest < ActionDispatch::IntegrationTest
test "index with a specific timezone" do
cookies[:timezone] = "America/New_York"
get events_url
get events_path
assert_select "div.event__wrapper[style='grid-area: 22/2']" do
assert_select "strong", text: "David assigned JZ to Layout is broken"