diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-06 11:48:30 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-06 11:48:30 +0300 |
commit | 027714b519cca63ac943369d0bcc9534ba448a80 (patch) | |
tree | ab331c60efe243bd6eb79c95b67dc797bb165078 /test/web/admin_api/admin_api_controller_test.exs | |
parent | 40765875d41f181b4ac54a772b4c61d6afc0bc34 (diff) | |
parent | 47604907c9d2379d0883d63bc7add5782cc25d63 (diff) | |
download | pleroma-027714b519cca63ac943369d0bcc9534ba448a80.tar.gz pleroma-027714b519cca63ac943369d0bcc9534ba448a80.zip |
Merge remote-tracking branch 'remotes/origin/develop' into 1560-non-federating-instances-routes-restrictions
Diffstat (limited to 'test/web/admin_api/admin_api_controller_test.exs')
-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 |