bblimke/webmock — pull request #223 by grantovich (2012-11-08 18:03:14+00:00)
Title: Fix 'rack.errors' not being set for Rack apps

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.