tests: add test for fetching the internal fetch actor
authorAriadne Conill <ariadne@dereferenced.org>
Wed, 17 Jul 2019 17:48:08 +0000 (17:48 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Wed, 17 Jul 2019 17:48:08 +0000 (17:48 +0000)
test/web/activity_pub/activity_pub_controller_test.exs

index 452172bb49bbbbcc2fd4390bcb4f686c06ba33f3..40344f17ea8c076fdb57a6fdea4c1b5f0ca39829 100644 (file)
@@ -48,6 +48,17 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
     end
   end
 
+  describe "/internal/fetch" do
+    test "it returns the internal fetch user", %{conn: conn} do
+      res =
+        conn
+        |> get(activity_pub_path(conn, :internal_fetch))
+        |> json_response(200)
+
+      assert res["id"] =~ "/fetch"
+    end
+  end
+
   describe "/users/:nickname" do
     test "it returns a json representation of the user with accept application/json", %{
       conn: conn