Skip to content
Myr

Added spec for #286

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

authored by visionmedia · committed by visionmedia · parent 7441164 · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:spec/spec.request.js+3 added-1 removed
200 unmodified lines
201 end202203 it 'should work with a query string'204 get('/user', function(){205 return String(this.param('page') || 'First page')205 var page = this.param('page')206 return page ? String(page) : 'First page'207 })208 get('/user').body.should.eql 'First page'209 get('/user?page=0').body.should.eql '0'210 get('/user?page=2').body.should.eql '2'211 get('/user?foo[]=bar&page=5').body.should.eql '5'212 end213
156 unmodified lines