spec/excesselt_spec.rb in excesselt-1.1.1 vs spec/excesselt_spec.rb in excesselt-1.1.2
- old
+ new
@@ -43,9 +43,21 @@
<p style="child_content">HELLO WORLD</p>
</p>
EXPECTED
@stylesheet.transform(xml).should match_the_dom_of(expected)
end
+
+ it "should ignore comments" do
+ xml = <<-XML
+ <parent>
+ <!-- Ignore me -->
+ </parent>
+ XML
+ expected = <<-EXPECTED
+ <p style="parent_content"/>
+ EXPECTED
+ @stylesheet.transform(xml).should match_the_dom_of(expected)
+ end
it "should transform a goodbye document according to a stylesheet" do
xml = <<-XML
<parent>
<parent>