"Your config is using the old setting for controlling the URL of media uploaded to your S3 bucket."
end
- test "check_old_chat_shoutbox/0" do
- clear_config([:instance, :chat_limit], 1_000)
- clear_config([:chat, :enabled], true)
+ test "check_http_adapter/0" do
+ Application.put_env(:tesla, :adapter, Gun)
assert capture_log(fn ->
- DeprecationWarnings.check_old_chat_shoutbox()
- end) =~
- "Your config is using the old namespace for the Shoutbox configuration."
+ DeprecationWarnings.check_http_adapter()
+ end) =~ "Your config is using a custom tesla adapter"
+
+ Application.put_env(:tesla, :adapter, Tesla.Mock)
end
end