spec/fu_spec.rb in fu-0.0.2 vs spec/fu_spec.rb in fu-0.1.1
- old
+ new
@@ -82,11 +82,10 @@
{{name}} and {{address}}
END
result.should eq "{{^children}}{{name}} and {{address}}{{/children}}"
end
-
it "handles mustache in attributes" do
Fu.to_mustache('%p(data-bingo="{{bingo}}")').should eq '<p data-bingo="{{bingo}}"></p>'
end
it "handles escaped quote characters in attribute values" do
@@ -99,6 +98,9 @@
%p
END
end
+ it "never escapes the gt-character of include-statements" do
+ Fu.to_mustache("Bingo{{>partial}}bongo").should eq "Bingo{{>partial}}bongo"
+ end
end
\ No newline at end of file