From 9349d6df0e2198e5ed0240ca3dfa06747912c3e5 Mon Sep 17 00:00:00 2001 From: Alan Johnson Date: Tue, 25 Jan 2011 19:58:39 -0500 Subject: [PATCH] Added test for undefined blocks - didn't matter though. --- spec/qunit_spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 8bbade11..449ad26f 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -285,6 +285,10 @@ test("block helper should have context in this", function() { shouldCompileTo(source, [data, {link: link}], ""); }); +test("block helper for undefined value", function() { + shouldCompileTo("{{#empty}}shouldn't render{{/empty}}", {}, ""); +}); + test("block helper passing a new context", function() { var string = "{{#form yehuda}}

{{name}}

{{/form}}" var template = Handlebars.compile(string);