require File.expand_path('../../../../../spec_helper', __FILE__) require 'net/http' describe "Net::HTTPResponse.read_new" do it "creates a HTTPResponse object based on the response read from the passed socket" do socket = Net::BufferedIO.new(StringIO.new(<