geemus/excon — pull request #128 by marios (2012-06-26 15:26:51+00:00)
Title: Fix issue with excon mocking and vcr

Hi, latest VCR gem ( as of [2.2.0](https://github.com/myronmarston/vcr/blob/master/CHANGELOG.md#220-may-31-2012) ) has put guards in against non-string body sent in a request.

It looks like excon sends a request body 'as is' when mocking, even if this is a Tempfile. I only came across this due to this recent change/guard in the VCR gem.

Previously the recorded VCR fixtures for a POST would look like:

1 --- $
2 http_interactions: $
3 - request: $
4 method: put$
5 uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel$
6 body: $
7 string: "#"$

# ...

Now when running my Minitests I get:

#