Merge branch 'develop' into gun

This commit is contained in:
Alexander Strizhakov 2020-03-07 12:41:37 +03:00
commit b2eb1124d1
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
19 changed files with 197 additions and 50 deletions

View file

@ -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