diff options
author | lain <lain@soykaf.club> | 2020-03-05 12:42:02 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-03-05 12:42:02 +0100 |
commit | f1750b46585528ebcabc12b35ab19727b2738585 (patch) | |
tree | bc0ebe4af4bdf5e1f3210983b16962cce1f249ea | |
parent | 4bce13fa2f9c9c234f8cf8d03e150f3478ff7483 (diff) | |
download | pleroma-f1750b46585528ebcabc12b35ab19727b2738585.tar.gz |
Admin API tests: Fix wrong test.
-rw-r--r-- | test/web/admin_api/admin_api_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 45b22ea24..8009d4386 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -1880,10 +1880,10 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do "@#{admin.nickname} deleted status ##{id}" end - test "returns error when status is not exist", %{conn: conn} do + test "returns 404 when the status does not exist", %{conn: conn} do conn = delete(conn, "/api/pleroma/admin/statuses/test") - assert json_response(conn, :bad_request) == "Could not delete" + assert json_response(conn, :not_found) == "Not found" end end |