summaryrefslogtreecommitdiff
path: root/test/config/config_db_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-02-05 07:56:36 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-02-05 07:56:36 +0300
commite84fee5b8624c8909ddd8a7e0d99c6beea4f54d0 (patch)
treed0d2bfc3d847f9bb4fa03f08d9d60f49042b2688 /test/config/config_db_test.exs
parent86e4d23acb640efea8cbc879ddbeadfa0e04f9c8 (diff)
parenta56db789359c7c7d57b45e6c68f791eeadc171e4 (diff)
downloadpleroma-e84fee5b8624c8909ddd8a7e0d99c6beea4f54d0.tar.gz
pleroma-e84fee5b8624c8909ddd8a7e0d99c6beea4f54d0.zip
Merge remote-tracking branch 'remotes/origin/develop' into 1505-threads-federation
Diffstat (limited to 'test/config/config_db_test.exs')
-rw-r--r--test/config/config_db_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/config/config_db_test.exs b/test/config/config_db_test.exs
index 61a0b1d5d..812709fd8 100644
--- a/test/config/config_db_test.exs
+++ b/test/config/config_db_test.exs
@@ -307,6 +307,15 @@ defmodule Pleroma.ConfigDBTest do
assert ConfigDB.from_binary(binary) == Quack.Logger
end
+ test "Swoosh.Adapters modules" do
+ binary = ConfigDB.transform("Swoosh.Adapters.SMTP")
+ assert binary == :erlang.term_to_binary(Swoosh.Adapters.SMTP)
+ assert ConfigDB.from_binary(binary) == Swoosh.Adapters.SMTP
+ binary = ConfigDB.transform("Swoosh.Adapters.AmazonSES")
+ assert binary == :erlang.term_to_binary(Swoosh.Adapters.AmazonSES)
+ assert ConfigDB.from_binary(binary) == Swoosh.Adapters.AmazonSES
+ end
+
test "sigil" do
binary = ConfigDB.transform("~r[comp[lL][aA][iI][nN]er]")
assert binary == :erlang.term_to_binary(~r/comp[lL][aA][iI][nN]er/)