Permalink
Browse files

more tests

  • Loading branch information...
tj committed May 25, 2011
1 parent c9ff619 commit 175aa08500e65f5f9601fa6a404b936f7b87d74b
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/view.test.js
View
@@ -711,10 +711,19 @@ module.exports = {
'test #partial() relative lookup': function(){
var app = create();
+
app.get('/', function(req, res, next){
res.partial('forum/thread.jade');
});
+ app.get('/2', function(req, res, next){
+ res.partial('forum/../forum/thread.jade');
+ });
+
+ assert.response(app,
+ { url: '/2' },
+ { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });
+
assert.response(app,
{ url: '/' },
{ body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });

0 comments on commit 175aa08

Please sign in to comment.