Skip to content
Myr

Fixed several specs due to throw_error being a bitch

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

authored by visionmedia · committed by visionmedia · parent 39aea80 · Browse files · 3 files+11 added−4 removed
This commit

State

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

Diff stats

3 files+11 added−4 removed

  • tests:+11 added−4 removed

3 files+11 added−4 removed

modified:spec/spec.request.js+1 added-2 removed
modified:spec/spec.routing.js+5 added-1 removed
84 unmodified lines
85 end86 87 describe 'with no response body'88 it 'should throw a InvalidResponseBody'89 // TODO: use throw_error when fixed...90 get('/user', function(){91 this.respond()92 })92 -{ get('/user') }.should.throw_error(/InvalidResponseBody: get "\/user" did not respond with a body string/)93 try { get('/user') }94 catch (e) {95 e.should.be_an_instance_of InvalidResponseBody96 }97 end98 end99 100 describe 'with regular expression'
221 unmodified lines
modified:spec/spec.static.js+5 added-1 removed