Skip to content

Loading…

Stringify HTTP Gem's mock response body #360

Merged
merged 1 commit into from

2 participants

@ixti

This prepares for upcoming API changes of HTTP Gem.

@ixti ixti Stringify HTTP Gem's mock response body
This prepares for upcoming API changes of HTTP Gem.
8fca9a7
@bblimke
Owner

Thanks!

@bblimke bblimke merged commit 2919c0e into bblimke:master

1 check passed

Details default The Travis CI build passed
@ixti ixti deleted the vid-io:fix/http-gem-adapter-body-stringify branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 17, 2014
  1. @ixti

    Stringify HTTP Gem's mock response body

    ixti committed
    This prepares for upcoming API changes of HTTP Gem.
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/webmock/http_lib_adapters/http_gem_adapter.rb
View
2 lib/webmock/http_lib_adapters/http_gem_adapter.rb
@@ -46,7 +46,7 @@ def to_webmock
webmock_response = ::WebMock::Response.new
webmock_response.status = [status, reason]
- webmock_response.body = body
+ webmock_response.body = body.to_s
webmock_response.headers = headers
webmock_response
Something went wrong with that request. Please try again.