Skip to content

Commit

Permalink
Added failing partial precedence test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 19, 2011
1 parent d9e7153 commit 53d4da2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/_foobar.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
p two
1 change: 1 addition & 0 deletions test/fixtures/foobar.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
p one
8 changes: 8 additions & 0 deletions test/view.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,14 @@ module.exports = {
assert.response(app,
{ url: '/error' },
{ status: 500 });

app.get('/underscore', function(req, res, next){
res.partial('foobar');
});

assert.response(app,
{ url: '/underscore' },
{ body: '<p>two</p>' });
},

'test #partial() with several calls': function(){
Expand Down

0 comments on commit 53d4da2

Please sign in to comment.