X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Fplugs%2Finstance_static_test.exs;h=aa5dda4d14507348c5a5c2a26de495de32774d42;hb=1b2c24a19e86434f748a4f3cba6fb688253efb15;hp=5b30011d30dbaff9de56e897039e7c24a983f603;hpb=d8d4e962304c5424de4d171d25445b7135a67a09;p=akkoma
diff --git a/test/pleroma/web/plugs/instance_static_test.exs b/test/pleroma/web/plugs/instance_static_test.exs
index 5b30011d3..aa5dda4d1 100644
--- a/test/pleroma/web/plugs/instance_static_test.exs
+++ b/test/pleroma/web/plugs/instance_static_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.InstanceStaticTest do
@@ -45,21 +45,4 @@ defmodule Pleroma.Web.Plugs.InstanceStaticTest do
index = get(conn, "/")
assert html_response(index, 200) == "from instance static"
end
-
- test "overrides any file in static/static" do
- bundled_index = get(build_conn(), "/static/terms-of-service.html")
-
- assert html_response(bundled_index, 200) ==
- File.read!("priv/static/static/terms-of-service.html")
-
- File.mkdir!(@dir <> "/static")
- File.write!(@dir <> "/static/terms-of-service.html", "plz be kind")
-
- index = get(build_conn(), "/static/terms-of-service.html")
- assert html_response(index, 200) == "plz be kind"
-
- File.write!(@dir <> "/static/kaniini.html", "
rabbit hugs as a service
")
- index = get(build_conn(), "/static/kaniini.html")
- assert html_response(index, 200) == "rabbit hugs as a service
"
- end
end