improve test readability
[akkoma] / test / web / activity_pub / activity_pub_controller_test.exs
index 620e036748a4e00b20596dfb602f30507e55fade..7d1fe184e21bf540d7e0b4a4ad8633ec97de4f7a 100644 (file)
@@ -75,6 +75,18 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
 
       assert json_response(conn, 404)
     end
+
+    test "it returns 404 for tombstone objects", %{conn: conn} do
+      tombstone = insert(:tombstone)
+      uuid = String.split(tombstone.data["id"], "/") |> List.last()
+
+      conn =
+        conn
+        |> put_req_header("accept", "application/activity+json")
+        |> get("/objects/#{uuid}")
+
+      assert json_response(conn, 404)
+    end
   end
 
   describe "/inbox" do