mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
net-http no longer requires stringio
This commit is contained in:
parent
f2d6fa16e1
commit
ddc29e2989
4 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,7 @@ describe "Net::HTTP.get" do
|
|||
describe "when reading gzipped contents" do
|
||||
def start_threads
|
||||
require 'zlib'
|
||||
require 'stringio'
|
||||
|
||||
server = nil
|
||||
server_thread = Thread.new do
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require_relative '../../../../spec_helper'
|
||||
require 'net/http'
|
||||
require 'stringio'
|
||||
|
||||
describe "Net::HTTPResponse#read_body" do
|
||||
before :each do
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require_relative '../../../../spec_helper'
|
||||
require 'net/http'
|
||||
require 'stringio'
|
||||
|
||||
describe "Net::HTTPResponse.read_new" do
|
||||
it "creates a HTTPResponse object based on the response read from the passed socket" do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'stringio'
|
||||
|
||||
describe :net_httpresponse_body, shared: true do
|
||||
before :each do
|
||||
@res = Net::HTTPUnknownResponse.new("1.0", "???", "test response")
|
||||
|
|
Loading…
Reference in a new issue