summaryrefslogtreecommitdiffstats
path: root/spec/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers.js')
-rw-r--r--spec/helpers.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/helpers.js b/spec/helpers.js
index 9fb32e6..fad6e5a 100644
--- a/spec/helpers.js
+++ b/spec/helpers.js
@@ -176,11 +176,15 @@ describe('helpers', function() {
var helpers = Handlebars.helpers;
try {
Handlebars.helpers = {};
- Handlebars.registerHelper({
- 'if': helpers['if'],
- world: function() { return "world!"; },
- test_helper: function() { return 'found it!'; }
- });
+ 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!'; }
+ //});
shouldCompileTo(
"{{test_helper}} {{#if cruel}}Goodbye {{cruel}} {{world}}!{{/if}}",