diff options
Diffstat (limited to 'spec/helpers.js')
-rw-r--r-- | spec/helpers.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/spec/helpers.js b/spec/helpers.js index fad6e5a..71f09d3 100644 --- a/spec/helpers.js +++ b/spec/helpers.js @@ -176,15 +176,12 @@ describe('helpers', function() { var helpers = Handlebars.helpers; try { Handlebars.helpers = {}; - Handlebars.registerHelper('if', helpers['if']); - Handlebars.registerHelper('world', function() { return "world!"; }); - Handlebars.registerHelper('test_helper', function() { return 'found it!'; }); - //Handlebars.registerHelper({ - //'if': helpers['if'], - //world: function() { return "world!"; }, - //test_helper: function() { return 'found it!'; } - //}); + Handlebars.registerHelper({ + 'if': helpers['if'], + world: function() { return "world!"; }, + test_helper: function() { return 'found it!'; } + }); shouldCompileTo( "{{test_helper}} {{#if cruel}}Goodbye {{cruel}} {{world}}!{{/if}}", |