Skip to content
Myr

Fixing more 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 2d3d6da · Browse files · 3 files+8 added−11 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+8 added−11 removed

  • tests:+4 added−11 removed
  • other:+4 added−0 removed

3 files+8 added−11 removed

modified:lib/express/core.js+4 added
258 unmodified lines
259260configure(function(){261 set('views', function(){ return set('root') + '/views' })262})263264configure('test', function(){265 enable('throw exceptions')266})
modified:spec/spec.plugins.js+1 added-10 removed
modified:spec/spec.routing.js+3 added-1 removed
187 unmodified lines
188 189 describe 'with an exception thrown'190 describe 'with "show exceptions" enabled'191 it 'should show the exception html'192 disable('throw exceptions')193 enable('show exceptions')194 get('/user', function(){195 throw new Error('Access Denied')196 })
3 unmodified lines
200 end201 end202 203 describe 'with "show exceptions" disabled'203   disable('show exceptions')204 it 'should show the regular body'205   disable('throw exceptions')206 disable('show exceptions')207 get('/user', function(){208 throw new Error('Access Denied')209 })210 get('/user').status.should.eql 500
27 unmodified lines