Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Oct 28, 2024
1 parent 3291297 commit afdb225
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defmodule ScreenplayWeb.PaMessagesApiControllerTest do
end

@tag :authenticated_pa_message_admin
test "responds with only the active messages when filtered by state=active", %{conn: conn} do
test "responds with only the active messages when filtered by state=current", %{conn: conn} do
now = "2024-08-06T15:10:00Z"

insert(:pa_message, %{
Expand All @@ -96,7 +96,7 @@ defmodule ScreenplayWeb.PaMessagesApiControllerTest do

assert [%{"id" => 2}] =
conn
|> get("/api/pa-messages?state=active&now=#{now}")
|> get("/api/pa-messages?state=current&now=#{now}")
|> json_response(200)
end

Expand Down

0 comments on commit afdb225

Please sign in to comment.