summaryrefslogtreecommitdiff
path: root/test/web/admin_api/admin_api_controller_test.exs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-03-07 12:41:37 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-03-07 12:41:37 +0300
commitb2eb1124d115beda0907121c3c6f10783b34f352 (patch)
tree87d2732555f3ac45ff5ef699064137d5fcaffafb /test/web/admin_api/admin_api_controller_test.exs
parent5f42ecc4c74172b1b17c126106fda9da24065b11 (diff)
parent6d797b99282ff1067c6af04b3e1775ff2281333b (diff)
downloadpleroma-b2eb1124d115beda0907121c3c6f10783b34f352.tar.gz
pleroma-b2eb1124d115beda0907121c3c6f10783b34f352.zip
Merge branch 'develop' into gun
Diffstat (limited to 'test/web/admin_api/admin_api_controller_test.exs')
-rw-r--r--test/web/admin_api/admin_api_controller_test.exs4
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 3b73525af..d6b839948 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