Skip to content

Commit

Permalink
test: Simplify disruption title search test
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoops committed Feb 27, 2025
1 parent d1c8491 commit c502f87
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/arrow_web/controllers/disruption_v2_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,8 @@ defmodule ArrowWeb.DisruptionV2ControllerTest do

@tag :authenticated
test "lists disruptions that match a search query on title", %{conn: conn} do
route = insert(:gtfs_route)

insert(:limit,
disruption: build(:disruption_v2, title: "Test disruption Alpha"),
route: route
)

insert(:limit,
disruption: build(:disruption_v2, title: "Test disruption Beta"),
route: route
)
insert(:disruption_v2, title: "Test disruption Alpha")
insert(:disruption_v2, title: "Test disruption Beta")

resp = conn |> get(~p"/disruptionsv2?search=Alpha") |> html_response(200)

Expand Down

0 comments on commit c502f87

Please sign in to comment.