 
   test "html has doctype" do
     assert html([]) |> flush =~ "<!DOCTYPE html>"
+  end
+
+  test "generic tag without attributes or content" do
+    assert tag(:foo) |> flush == ~s[<foo></foo>]
   end
 
   test "generic tag without attributes" do

      ~s[<link rel="stylesheet" type="text/css" href="/a/w/e/some.css" />]
  end

  test "div tag" do
    assert div(nil) |> flush == "<div></div>"
    assert div("")  |> flush == "<div></div>"
    assert div([])  |> flush == "<div></div>"

      ~s[<html foo="bar"></html>]
  end

  test "meta tag" do
    assert meta()   |> flush == "<meta />"
    assert meta([]) |> flush == "<meta />"
  end

  test "link tag" do
    assert link()   |> flush == "<link />"
    assert link([]) |> flush == "<link />"
    assert link([foo: "bar"]) |> flush == ~s[<link foo="bar" />]
  end
