Fix failing test
authorAaron Tinio <aptinio@gmail.com>
Tue, 21 May 2019 23:11:09 +0000 (07:11 +0800)
committerAaron Tinio <aptinio@gmail.com>
Tue, 21 May 2019 23:16:11 +0000 (07:16 +0800)
test/web/admin_api/admin_api_controller_test.exs

index ca12c72153931131f93c853128d95208a596a873..c15c67e313e4c4c25be4164fd64417377aa3a679 100644 (file)
@@ -397,14 +397,14 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
     end
   end
 
-  test "/api/pleroma/admin/invite_token" do
+  test "/api/pleroma/admin/users/invite_token" do
     admin = insert(:user, info: %{is_admin: true})
 
     conn =
       build_conn()
       |> assign(:user, admin)
       |> put_req_header("accept", "application/json")
-      |> get("/api/pleroma/admin/invite_token")
+      |> get("/api/pleroma/admin/users/invite_token")
 
     assert conn.status == 200
   end