Move mismatched block test from quint to parser tests.

This commit is contained in:
kpdecker
2011-07-30 15:25:25 -05:00
parent 82a1b0e85c
commit 3d9e5070f5
2 changed files with 1 additions and 8 deletions
+1
View File
@@ -246,6 +246,7 @@ describe "Parser" do
it "raises if there's a Parse error" do
lambda { ast_for("{{foo}") }.should raise_error(V8::JSError, /Parse error on line 1/)
lambda { ast_for("{{foo &}}")}.should raise_error(V8::JSError, /Parse error on line 1/)
lambda { ast_for("{{#goodbyes}}{{/hellos}}") }.should raise_error(V8::JSError, /goodbyes doesn't match hellos/)
end
it "knows how to report the correct line number in errors" do
-8
View File
@@ -202,14 +202,6 @@ test("empty block", function() {
"Arrays ignore the contents when empty");
});
test("incorrectly matched blocks", function() {
var string = "{{#goodbyes}}{{/hellos}}";
shouldThrow(function() {
Handlebars.compile(string);
}, Handlebars.Exception, "Incorrectly matched blocks return an exception at compile time.");
});
test("nested iteration", function() {
});