bblimke/webmock — pull request #196 by jonleighton (2012-07-23 10:55:22+00:00)
Title: Fix em-http-request callback triggering

Previously, if there were other EM::Deferred callbacks registered, they
might execute before WebMock's callback and raise an exception. This
would prevent the WebMock callback ever running, even though there was a
successful request.

Overriding set_deferred_status prevents this by triggering WebMock's
callbacks before running any of the EM::Deferred callbacks.

Sorry, I have no idea how to test this.