test/all.rb in hypertext-0.0.2 vs test/all.rb in hypertext-0.0.3
- old
+ new
@@ -70,6 +70,22 @@
end
end
assert_equal expected, ht.to_s("....")
end
-end
\ No newline at end of file
+end
+
+scope "Hypertext::DSL" do
+ test do
+ expected = "<head>\n <title>\n hello world\n </title>\n</head>\n"
+
+ ht = Hypertext::DSL.new do
+ head do
+ title do
+ text "hello world"
+ end
+ end
+ end
+
+ assert_equal expected, ht.to_s
+ end
+end