diff --git a/test/nulla_web/controllers/actor_controller_test.exs b/test/nulla_web/controllers/actor_controller_test.exs index db916a2..2866031 100644 --- a/test/nulla_web/controllers/actor_controller_test.exs +++ b/test/nulla_web/controllers/actor_controller_test.exs @@ -34,12 +34,12 @@ defmodule NullaWeb.ActorControllerTest do :ok end - describe "GET /@username" do + describe "GET /users/username" do test "renders ActivityPub JSON if Accept header is activity+json", %{conn: conn} do conn = conn |> put_req_header("accept", "application/activity+json") - |> get(~p"/@test") + |> get(~p"/users/test") assert response = json_response(conn, 200) @@ -72,7 +72,7 @@ defmodule NullaWeb.ActorControllerTest do end test "renders HTML if Accept header is regular", %{conn: conn} do - conn = get(conn, ~p"/@test") + conn = get(conn, ~p"/users/test") assert html_response(conn, 200) =~ "test" assert html_response(conn, 200) =~ "Test" @@ -80,7 +80,7 @@ defmodule NullaWeb.ActorControllerTest do end test "returns 404 if actor not found", %{conn: conn} do - conn = get(conn, ~p"/@nonexistent") + conn = get(conn, ~p"/users/nonexistent") assert json_response(conn, 404)["error"] == "Not Found" end