multiple authors are concatenated

This commit is contained in:
mmacia committed 2026-07-02 22:34:01 +00:00
1 parent 34dea7a2ca
commit 515d60f331
2 files changed
+22 -1

No files matched your search

+9
View File
@@ -34,6 +34,15 @@ defmodule FeedReader.AtomTest do
)
end
test "joins multiple author names in source order" do
raw = %{
"title" => "Story",
"author" => [%{"name" => "Alice"}, %{"name" => "Bob"}]
}
assert {:ok, %Item{author: "Alice, Bob"}} = Atom.normalize_item(raw, %Feed{}, [])
end
test "accounts for parser failures and closes empty feeds" do
handler = Atom.handler()
sink = fn event -> send(self(), event) end