X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Fplugs%2Finstance_static_test.exs;h=aa5dda4d14507348c5a5c2a26de495de32774d42;hb=07a48b9293e4046c50b5d424d60a1bf16c7cc198;hp=5b30011d30dbaff9de56e897039e7c24a983f603;hpb=dd2b3a8da92e0b823ac338657588339fbf2e9c86;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