spec/xml_document_spec.rb in genit-0.4.1 vs spec/xml_document_spec.rb in genit-0.5
- old
+ new
@@ -6,7 +6,12 @@
it "should load as a document" do
doc = XmlDocument.open("data/templates/menu.html")
doc.css("ul#menu li").size.should >= 1
end
+
+ it "should load as a fragment" do
+ doc = XmlDocument.open_fragment("data/templates/menu.html")
+ doc.css("ul#menu li").size.should >= 1
+ end
end