projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ChatController: Support deletion of chat messages.
[akkoma]
/
test
/
web
/
fallback_test.exs
diff --git
a/test/web/fallback_test.exs
b/test/web/fallback_test.exs
index cc78b3ae157ac7d3045a138dd9f137d72ceac6de..3919ef93a35db61b212e48d423e5e62fbbedc1f6 100644
(file)
--- a/
test/web/fallback_test.exs
+++ b/
test/web/fallback_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.FallbackTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.FallbackTest do
@@
-30,6
+30,10
@@
defmodule Pleroma.Web.FallbackTest do
|> json_response(404) == %{"error" => "Not implemented"}
end
|> json_response(404) == %{"error" => "Not implemented"}
end
+ test "GET /pleroma/admin -> /pleroma/admin/", %{conn: conn} do
+ assert redirected_to(get(conn, "/pleroma/admin")) =~ "/pleroma/admin/"
+ end
+
test "GET /*path", %{conn: conn} do
assert conn
|> get("/foo")
test "GET /*path", %{conn: conn} do
assert conn
|> get("/foo")