diff options
Diffstat (limited to 'spec/regressions.js')
-rw-r--r-- | spec/regressions.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/regressions.js b/spec/regressions.js index 4a2a55c..4dc2ac8 100644 --- a/spec/regressions.js +++ b/spec/regressions.js @@ -277,4 +277,15 @@ describe('Regressions', function() { shouldCompileTo(string, { listOne: ['a'], listTwo: ['b']}, 'ab', ''); }); + + 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'); + }); }); |