aboutsummaryrefslogtreecommitdiff
path: root/test/config
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-23 18:21:29 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-23 18:21:29 +0300
commit6cd2e851d9d61ce82edf83ced79c9d4c613c0373 (patch)
treeb234691a0eada317fcc89c372129b4e2f7f509bf /test/config
parente8e57e398f701497b9989c19c36c20fd227393ac (diff)
downloadpleroma-6cd2e851d9d61ce82edf83ced79c9d4c613c0373.tar.gz
parsing Swoosh modules
Diffstat (limited to 'test/config')
-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/)