Merge branch 'add-test-update_credentials' into 'develop'
[akkoma] / test / plugs / http_security_plug_test.exs
index 944a9a139bc4c7fc9c1da7e944e10f0e007e773f..84e4c274fb5b54a2a0ba9c0a470ebc3cf99fa4db 100644 (file)
@@ -7,9 +7,9 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
   alias Pleroma.Config
   alias Plug.Conn
 
-  clear_config([:http_securiy, :enabled])
-  clear_config([:http_security, :sts])
-  clear_config([:http_security, :referrer_policy])
+  setup do: clear_config([:http_securiy, :enabled])
+  setup do: clear_config([:http_security, :sts])
+  setup do: clear_config([:http_security, :referrer_policy])
 
   describe "http security enabled" do
     setup do