projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into gun
[akkoma]
/
test
/
web
/
admin_api
/
admin_api_controller_test.exs
diff --git
a/test/web/admin_api/admin_api_controller_test.exs
b/test/web/admin_api/admin_api_controller_test.exs
index 7add752639fdb1b035238cf797217b9817b97df4..d6b8399480b200b8ccc70b5bb4b5cb362a64cc05 100644
(file)
--- a/
test/web/admin_api/admin_api_controller_test.exs
+++ b/
test/web/admin_api/admin_api_controller_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
@@
-1880,10
+1880,10
@@
defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
"@#{admin.nickname} deleted status ##{id}"
end
"@#{admin.nickname} deleted status ##{id}"
end
- test "returns
error when status i
s not exist", %{conn: conn} do
+ test "returns
404 when the status doe
s not exist", %{conn: conn} do
conn = delete(conn, "/api/pleroma/admin/statuses/test")
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
end
end