You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ruby fakeweb_example.rb
Without FakeWeb loaded:
Net::ReadAdapter
With FakeWeb loaded, and http connections allowed:
Net::ReadAdapter
With a stubbed request:
String
As you can see, Net::HTTP causes the body of a response for a request with a block that calls #read_body to be a Net::ReadAdapter, but FakeWeb modifies this behavior when stubbing a request. FakeWeb causes it to be a String.
Given this ruby script:
I get this output:
As you can see, Net::HTTP causes the body of a response for a request with a block that calls #read_body to be a Net::ReadAdapter, but FakeWeb modifies this behavior when stubbing a request. FakeWeb causes it to be a String.
I've got a fix for this bug here.
The text was updated successfully, but these errors were encountered: