summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-06-04 17:37:30 +0000
committerfeld <feld@feld.me>2021-06-04 17:37:30 +0000
commita07310888fa3d46a36f3185ed09da7243921dad4 (patch)
tree9ecc7dbdd248a2253dfb2af767674eaa558658e8 /test
parent922f4e3fb7452e654d5b9c1b3148df1e663fa788 (diff)
parentf58928cf1c69adf9f16837e0ca86167b38375f94 (diff)
Merge branch 'fix/missing-deprecation' into 'develop'
Add missing deprecation warning left out of !2842 See merge request pleroma/pleroma!3444
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/config/deprecation_warnings_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pleroma/config/deprecation_warnings_test.exs b/test/pleroma/config/deprecation_warnings_test.exs
index 15f4982ea..ccf86634f 100644
--- a/test/pleroma/config/deprecation_warnings_test.exs
+++ b/test/pleroma/config/deprecation_warnings_test.exs
@@ -146,4 +146,14 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
"Your config is using old setting name `timeout` instead of `recv_timeout` in pool settings"
end
end
+
+ test "check_old_chat_shoutbox/0" do
+ clear_config([:instance, :chat_limit], 1_000)
+ clear_config([:chat, :enabled], true)
+
+ assert capture_log(fn ->
+ DeprecationWarnings.check_old_chat_shoutbox()
+ end) =~
+ "Your config is using the old namespace for the Shoutbox configuration."
+ end
end