Skip to content
Myr

Added more route wildcard specs

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

authored by visionmedia · committed by visionmedia · parent 6806f95 · Browse files · 1 file+9 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+9 added−0 removed

  • tests:+9 added−0 removed

1 file+9 added−0 removed

modified:spec/spec.routing.js+9 added
172 unmodified lines
173 get('/report.csv').body.should.eql 'yay'174 get('/report.pdf').body.should.eql 'yay'175 end176 177 it 'should match when mid-segment'178 get('/user-:name-:id', function(name, id){179 return name + ' ' + id180 })181 get('/user-tj-1').body.should.eql 'tj 1'182 get('/user--1').status.should.eql 404183 get('/user-tj-').status.should.eql 404184 end185 186 it 'should not match without value'187 get('/report.:format', function(){188 return 'yay'189 })
128 unmodified lines