diff options
Diffstat (limited to 'spec/regressions.js')
-rw-r--r-- | spec/regressions.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/regressions.js b/spec/regressions.js index ae0797e..cca126e 100644 --- a/spec/regressions.js +++ b/spec/regressions.js @@ -212,4 +212,12 @@ describe('Regressions', function() { }; shouldCompileToWithPartials(string, [{}, {}, partials], true, 'doctypelayoutsubcontent'); }); + it('GH-1089: should support failover content in multiple levels of inline partials', function() { + var string = '{{#> layout}}{{/layout}}'; + var partials = { + doctype: 'doctype{{> content}}', + layout: '{{#> doctype}}{{#*inline "content"}}layout{{#> subcontent}}subcontent{{/subcontent}}{{/inline}}{{/doctype}}' + }; + shouldCompileToWithPartials(string, [{}, {}, partials], true, 'doctypelayoutsubcontent'); + }); }); |