diff --git a/spec/regressions.js b/spec/regressions.js index 8209f5cc..147acb96 100644 --- a/spec/regressions.js +++ b/spec/regressions.js @@ -334,4 +334,15 @@ describe('Regressions', function() { }, 'useData': true}); } }); + + it('should allow hash with protected array names', function() { + var obj = {array: [1], name: 'John'}; + var helpers = { + helpa: function(options) { + return options.hash.length; + } + }; + + shouldCompileTo('{{helpa length="foo"}}', [obj, helpers], 'foo'); + }); });