Skip to content
Myr

add pass specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Aaron Heckmann · committed by visionmedia · parent 0ba3b11 · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:spec/spec.request.js+14 added
196 unmodified lines
197 return [path, file, ext].join(', ')198 })199 get('/public/app.js').body.should.eql 'public, app, js'200 end201 end202 203 describe '#pass()'204 it 'should pass control to the next matching route'205 get('/user', function () { 206 this.pass()207 })208 get('/user', function () { 209 this.pass()210 return 'nodejs'211 })212 get('/user', function () { return 'success'})213 get('/user').body.should.eql 'success'214 end215 end 216 end217end