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);