   end
 
   test "DOCL request for List.flatten" do
-    assert capture_io(fn ->
+    output = capture_io(fn ->
       Docl.process(["List.flatten", [], []])
-    end) =~ """
+    end)
+    [docs, _types] = output |> String.split("\u000B")
+
+    assert docs =~ """
     > List.flatten(list)
 
     ### Specs

          IO.puts \"It works\"
        end


    """
  end


  end

  test "DOCL request for defmacro" do
    output = capture_io(fn ->
      Docl.process(["defmacro", [], []])
    end)
    [docs, _types] = output |> String.split("\u000B")

    assert docs =~ """
    > Kernel.defmacro(call, expr \\\\\\\\ nil)

    Defines a macro with the given name and body.
