Stubs for Typhoeus::Request#on_body #349

merged 4 commits into from Jan 1, 2014

2 participants


Typhoeus 0.6.7 includes support for streaming. This branch adds support for mocking streamed typhoeus requests. For example, it makes it possible to use wemock to do the stubbing for this code:

request ='')
request.on_body { |chunk| p chunk }

cc typhoeus/typhoeus#339


Cheers @spraints It looks good.

@bblimke bblimke merged commit e89d0ec into bblimke:master Jan 1, 2014

1 check failed

Details default The Travis CI build failed
@spraints spraints deleted the spraints:streaming-typhoeus branch Jan 7, 2014
@spraints spraints restored the spraints:streaming-typhoeus branch Jan 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment