Permalink
Browse files

Treat StringIO in WebMockNetBufferedIO properly

  • Loading branch information...
fxposter committed Nov 7, 2012
1 parent e2c2e27 commit af2634c0d99d7c9199b68f327f9be3d0d5b18f5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/webmock/http_lib_adapters/net_http.rb
@@ -216,7 +216,7 @@ def initialize(io, debug_output = nil)
@debug_output = debug_output
@io = case io
- when Socket, OpenSSL::SSL::SSLSocket, IO
+ when Socket, OpenSSL::SSL::SSLSocket, IO, StringIO
io
when String
StringIO.new(io)

0 comments on commit af2634c

Please sign in to comment.