fix for subgroup tuple

added settings for swoosh adapters local
This commit is contained in:
Alexander 2019-12-20 10:22:53 +03:00 committed by Alexander Strizhakov
commit cda2c1fc63
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 37 additions and 1 deletions

View file

@ -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