Skip to content
Myr

More specs for halt()

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

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

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:spec/spec.core.js+8 added
119 unmodified lines
120 after_each121 Express.response.status = 200122 end123 124 it 'should default response status to 200'125 get('/foo', function(){126 halt('Foo bar')127 })128 get('/foo').status.should.eql 200129 get('/foo').body.should.eql 'Foo bar'130 end131 132 it 'should set response status and body'133 get('/foo', function(){134 halt('Page or file cannot be found', 'Not Found')135 })
103 unmodified lines