Skip to content
Myr

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 e248d77 · Browse files · 1 file+6 added−2 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+6 added−2 removed

  • tests:+6 added−2 removed

1 file+6 added−2 removed

modified:spec/spec.core.js+6 added-2 removed
169 unmodified lines
170 request = mockRequest({ 171 headers : [['Content-Type', 'application/x-www-form-urlencoded']],172 body : 'user[name]=foo%20bar&status=1'173 })174 post('foo', function(){ param('user').name + ' ' + param('status') })175 post('foo', { request : request }).body.should.eql 'foo bar 1'174 post('admin', function(){ param('user').name + ' ' + param('status') })175 post('admin', { request : request }).body.should.eql 'foo bar 1'176 end177178 it 'should parse JSON bodies'179 request = mockRequest({
13 unmodified lines
193 end194 195 describe 'MethodOverride'196 it 'should override request method when _method param is present'197 request = mockRequest({ 198 headers : [['Content-Type', 'application/x-www-form-urlencoded']],199 body : '_method=delete'200 })201 del('foo', function(){ 'Deleted' })202 post('foo', { request : { body : '_method=delete' }}).body.should.eql 'Deleted'203 end204 end
14 unmodified lines