Reset http security settings to fix plug test
authorAkiraFukushima <h3.poteto@gmail.com>
Fri, 16 Nov 2018 15:45:21 +0000 (00:45 +0900)
committerAkiraFukushima <h3.poteto@gmail.com>
Fri, 16 Nov 2018 15:45:21 +0000 (00:45 +0900)
test/plugs/http_security_plug_test.exs

index 55040a108b05835d1b8710fcafb441774ad9d095..169c3b3a84d98949736a27bfaa55852a4f83bd21 100644 (file)
@@ -60,6 +60,8 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
   end
 
   test "referrer-policy header reflects configured value", %{conn: conn} do
+    Config.put([:http_security, :enabled], true)
+
     conn =
       conn
       |> get("/api/v1/instance")