class WebMock::Response

def stringify_body!

def stringify_body!
  if @body.is_a?(IO) || @body.is_a?(Pathname)
    io = @body
    @body = io.read
    io.close if io.respond_to?(:close)
  end
end