Stubs for Typhoeus::Request#on_body #349

Merged
merged 4 commits into from Jan 1, 2014

2 participants

@spraints

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 = Typhoeus::Request.new('https://github.com')
request.on_body { |chunk| p chunk }
request.run

cc typhoeus/typhoeus#339

@bblimke
Owner

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