aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander <alex.strizhakov@gmail.com>2019-12-20 10:22:53 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-10 15:52:01 +0300
commitcda2c1fc630e455b3d419f5c3b22c366dc883ce1 (patch)
tree8b590d4cc01cde5a06a3b2744fce126476cc1008 /test
parent063ab6d9115ec17bd1907d42a998f335a0cd69c9 (diff)
downloadpleroma-cda2c1fc630e455b3d419f5c3b22c366dc883ce1.tar.gz
fix for subgroup tuple
added settings for swoosh adapters local
Diffstat (limited to 'test')
-rw-r--r--test/docs/generator_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/docs/generator_test.exs b/test/docs/generator_test.exs
index 42e7c32c8..0106809c2 100644
--- a/test/docs/generator_test.exs
+++ b/test/docs/generator_test.exs
@@ -207,5 +207,12 @@ defmodule Pleroma.Docs.GeneratorTest do
child = Enum.at(children, 7)
assert child[:key] == "application/xml"
end
+
+ test "subgroup with module name" do
+ [%{children: children} | _] = Generator.convert_to_strings(@descriptions)
+
+ %{group: subgroup} = Enum.at(children, 6)
+ assert subgroup == {":subgroup", "Swoosh.Adapters.SMTP"}
+ end
end
end