Skip to content
Myr

Misc spec refactoring

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

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

  • tests:+1 added−2 removed

1 file+1 added−2 removed

modified:spec/spec.core.js+1 added-2 removed
179 unmodified lines
180 end181 182 describe 'MethodOverride'183 it 'should override request method when _method param is present'184 request = mockRequest({ body : '_method=delete' })184 del('foo', function(){ 'Deleted' })186 post('foo', { request : request }).body.should.eql 'Deleted'185 post('foo', { request : { body : '_method=delete' }}).body.should.eql 'Deleted'186 end187 end188 189 describe 'DefaultContentType'
12 unmodified lines