1
0
Fork 0
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:
Nobuyoshi Nakada 2021-05-06 22:04:14 +09:00
parent f2d6fa16e1
commit ddc29e2989
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -1,5 +1,6 @@
require_relative '../../../../spec_helper'
require 'net/http'
require 'stringio'
describe "Net::HTTPResponse#read_body" do
before :each do

View file

@ -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

View file

@ -1,3 +1,5 @@
require 'stringio'
describe :net_httpresponse_body, shared: true do
before :each do
@res = Net::HTTPUnknownResponse.new("1.0", "???", "test response")