spec/compiler_spec.rb in curly-templates-0.10.0 vs spec/compiler_spec.rb in curly-templates-0.10.1
- old
+ new
@@ -93,9 +93,13 @@
it "does not escape HTML safe strings returned from the presenter" do
presenter.stub(:dirty) { "<p>dirty</p>".html_safe }
evaluate("{{dirty}}").should == "<p>dirty</p>"
end
+ it "does not escape HTML in the template itself" do
+ evaluate("<div>").should == "<div>"
+ end
+
it "removes comments from the output" do
evaluate("HELO{{! I'm a comment, yo }}WORLD").should == "HELOWORLD"
end
it "removes comment lines from the output" do