X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fpleroma%2Fconfig%2Fdeprecation_warnings_test.exs;h=b18267a7f436be42d9fb01cfb946903f5d793bfb;hb=ce6f652a9a4409fb18b604b4617e22d4f9d7941e;hp=053e2820741f27401244a9a4dbc5d5ce51990f5e;hpb=d109bbf71c2781bd0684f98e797f75aa951e67c3;p=akkoma diff --git a/test/pleroma/config/deprecation_warnings_test.exs b/test/pleroma/config/deprecation_warnings_test.exs index 053e28207..b18267a7f 100644 --- a/test/pleroma/config/deprecation_warnings_test.exs +++ b/test/pleroma/config/deprecation_warnings_test.exs @@ -279,4 +279,14 @@ defmodule Pleroma.Config.DeprecationWarningsTest do end) =~ "Your config is using the old setting for controlling the URL of media uploaded to your S3 bucket." end + + test "check_http_adapter/0" do + Application.put_env(:tesla, :adapter, Gun) + + assert capture_log(fn -> + DeprecationWarnings.check_http_adapter() + end) =~ "Your config is using a custom tesla adapter" + + Application.put_env(:tesla, :adapter, Tesla.Mock) + end end