test/html/test_pretty.rb in temple-0.1.5 vs test/html/test_pretty.rb in temple-0.1.6

- old
+ new

@@ -18,6 +18,23 @@ [:static, ">"], [:static, "text"], [:static, "</p>"]], [:static, "\n</div>"]] end + + + it 'should not indent preformatted tags' do + @html.compile([:html, :tag, 'pre', [:multi], false, + [:html, :tag, 'p', [:multi], false, [:static, 'text']] + ]).should.equal [:multi, + [:static, "<pre"], + [:multi], + [:static, ">"], + [:multi, + [:static, "<p"], + [:multi], + [:static, ">"], + [:static, "text"], + [:static, "</p>"]], + [:static, "</pre>"]] + end end