projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bce13f
)
Admin API tests: Fix wrong test.
author
lain
<lain@soykaf.club>
Thu, 5 Mar 2020 11:42:02 +0000
(12:42 +0100)
committer
lain
<lain@soykaf.club>
Thu, 5 Mar 2020 11:42:02 +0000
(12:42 +0100)
test/web/admin_api/admin_api_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/admin_api/admin_api_controller_test.exs
b/test/web/admin_api/admin_api_controller_test.exs
index 45b22ea2458d301bee8aa6c12822216eeef6412d..8009d4386333ca5228e3bc3e3c237eb4898649eb 100644
(file)
--- 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 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")
- assert json_response(conn, :
bad_request) == "Could not delete
"
+ assert json_response(conn, :
not_found) == "Not found
"
end
end