Skip to content
Myr

Mock request spec

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

authored by visionmedia · committed by visionmedia · parent 461337a · Browse files · 2 files+7 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

2 files+7 added−2 removed

  • tests:+7 added−2 removed

2 files+7 added−2 removed

modified:spec/spec.core.js+1 added-1 removed
modified:spec/spec.mocks.js+6 added-1 removed
50 unmodified lines
51 del('user').body.should.eql 'Deleted'52 del('other').status.should.eql 404 53 end54 end55 55 56 it 'should allow request to be passed'57 post('user', function(){ request.test })58 post('user', { request : { test : '1' }}).body.should.eql '1'59 end6061 end62end