spec/compiler_spec.rb in curly-templates-0.10.1 vs spec/compiler_spec.rb in curly-templates-0.10.2

- old
+ new

@@ -97,9 +97,14 @@ it "does not escape HTML in the template itself" do evaluate("<div>").should == "<div>" end + it "treats all values returned from the presenter as strings" do + presenter.stub(:foo) { 42 } + evaluate("{{foo}}").should == "42" + 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