diff options
-rw-r--r-- | spec/parser_spec.rb | 1 | ||||
-rw-r--r-- | spec/qunit_spec.js | 8 |
2 files changed, 1 insertions, 8 deletions
diff --git a/spec/parser_spec.rb b/spec/parser_spec.rb index ead3315..1ddcf90 100644 --- a/spec/parser_spec.rb +++ b/spec/parser_spec.rb @@ -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 diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 3b08bc5..2fbdfab 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -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() { }); |