diff --git a/test/fixtures/nested/partial.jade b/test/fixtures/nested/partial.jade new file mode 100644 index 0000000000..7940971157 --- /dev/null +++ b/test/fixtures/nested/partial.jade @@ -0,0 +1 @@ +!= partial('stats', { hits: 15, misses: 1 }) \ No newline at end of file diff --git a/test/view.test.js b/test/view.test.js index dee2f2ad32..c1db7e80ae 100644 --- a/test/view.test.js +++ b/test/view.test.js @@ -599,6 +599,16 @@ module.exports = { assert.response(app, { url: '/stats/callback/2' }, { body: 'got:

Hits 12

Misses 1

' }); + + // root lookup + + app.get('/root', function(req, res){ + res.partial('nested/partial'); + }); + + assert.response(app, + { url: '/root' }, + { body: '' }); }, 'test #partial() with several calls': function(){