Skip to content

Commit

Permalink
add pass specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Heckmann authored and tj committed Mar 15, 2010
1 parent 0ba3b11 commit 25e1a8c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/spec.request.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,20 @@ describe 'Express'
})
get('/public/app.js').body.should.eql 'public, app, js'
end
end

describe '#pass()'
it 'should pass control to the next matching route'
get('/user', function () {
this.pass()
})
get('/user', function () {
this.pass()
return 'nodejs'
})
get('/user', function () { return 'success'})
get('/user').body.should.eql 'success'
end
end
end
end

0 comments on commit 25e1a8c

Please sign in to comment.