X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fxml_builder_test.exs;h=4be7bbd019caca5511208cd1c6213d483d28ee09;hb=cc5373b846d7f816a3e78af342468f2ea8415b8d;hp=f502a0f0ec3b2e1ca774e6648ef4ec20f24143a1;hpb=1c00eb4a90cddb7518a823d9304f6aee4fd3ef78;p=akkoma diff --git a/test/xml_builder_test.exs b/test/xml_builder_test.exs index f502a0f0e..4be7bbd01 100644 --- a/test/xml_builder_test.exs +++ b/test/xml_builder_test.exs @@ -3,7 +3,7 @@ defmodule Pleroma.XmlBuilderTest do alias Pleroma.XmlBuilder test "Build a basic xml string from a tuple" do - data = { :feed, %{ xmlns: "http://www.w3.org/2005/Atom"}, "Some content" } + data = {:feed, %{xmlns: "http://www.w3.org/2005/Atom"}, "Some content"} expected_xml = "Some content" @@ -11,9 +11,10 @@ defmodule Pleroma.XmlBuilderTest do end test "returns a complete document" do - data = { :feed, %{ xmlns: "http://www.w3.org/2005/Atom"}, "Some content" } + data = {:feed, %{xmlns: "http://www.w3.org/2005/Atom"}, "Some content"} - expected_xml = "Some content" + expected_xml = + "Some content" assert XmlBuilder.to_doc(data) == expected_xml end @@ -34,11 +35,12 @@ defmodule Pleroma.XmlBuilderTest do :feed, [ {:guy, "brush"}, - {:lament, %{ configuration: "puzzle" }, "pinhead" } + {:lament, %{configuration: "puzzle"}, "pinhead"} ] } - expected_xml = ~s[brushpinhead] + expected_xml = + ~s[brushpinhead] assert XmlBuilder.to_xml(data) == expected_xml end @@ -50,7 +52,7 @@ defmodule Pleroma.XmlBuilderTest do test "Uses self-closing tags when no content is giving" do data = { :link, - %{ rel: "self" } + %{rel: "self"} } expected_xml = ~s[]