Fix 'rack.errors' not being set for Rack apps #223

merged 1 commit into from Feb 17, 2013

2 participants


I ran into an issue recently where Sinatra's error handler expects env['rack.errors'] to contain something that responds to puts, but when running under WebMock, it doesn't. This causes the error handler itself to throw an error, making debugging rather difficult.

The attached code fixes this issue and includes a test case for it.

@bblimke bblimke merged commit 0d7abd3 into bblimke:master Feb 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment