Add test for check_activity_expiration_config/0
authorMark Felder <feld@FreeBSD.org>
Tue, 22 Sep 2020 16:34:51 +0000 (11:34 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 22 Sep 2020 16:34:51 +0000 (11:34 -0500)
test/config/deprecation_warnings_test.exs

index 0efc0843cf363c947a2b27c47d03ad140ed13052..28355d7eba55fb439342cd9a1c7d129ccee4b44c 100644 (file)
@@ -82,6 +82,14 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
            end) =~ "You are using the old configuration mechanism for the hellthread filter."
   end
 
+  test "check_activity_expiration_config/0" do
+    clear_config([Pleroma.ActivityExpiration, :enabled], true)
+
+    assert capture_log(fn ->
+             DeprecationWarnings.check_activity_expiration_config()
+           end) =~ "Your config is using old namespace for activity expiration configuration."
+  end
+
   describe "check_gun_pool_options/0" do
     test "await_up_timeout" do
       config = Config.get(:connections_pool)