diff options
author | kpdecker <kpdecker@gmail.com> | 2011-07-30 15:25:25 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2011-07-30 15:25:25 -0500 |
commit | 3d9e5070f5261ea8da99ff30bc7f944e4d6b5e8d (patch) | |
tree | a25359720abd389cf68a69e4458f96c866a946eb | |
parent | 82a1b0e85c511d3d0642a0ca52dc5e2b1e90e627 (diff) | |
download | handlebars.js-3d9e5070f5261ea8da99ff30bc7f944e4d6b5e8d.zip handlebars.js-3d9e5070f5261ea8da99ff30bc7f944e4d6b5e8d.tar.gz handlebars.js-3d9e5070f5261ea8da99ff30bc7f944e4d6b5e8d.tar.bz2 |
Move mismatched block test from quint to parser tests.
-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() { }); |