X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fweb%2Ffallback_test.exs;h=3919ef93a35db61b212e48d423e5e62fbbedc1f6;hb=fc9d0b6eec1b206a27f4ec19f7939b3318a209ef;hp=cc78b3ae157ac7d3045a138dd9f137d72ceac6de;hpb=3ab9255eda21a5f8a25047375af9608e0c0c7592;p=akkoma
diff --git a/test/web/fallback_test.exs b/test/web/fallback_test.exs
index cc78b3ae1..3919ef93a 100644
--- a/test/web/fallback_test.exs
+++ b/test/web/fallback_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# 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
+ 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")