Sha256: 4f49bdaa06703e8e82497c8cdc81e38077c3040fab77d997439afb8ea05252a3

Contents?: true

Size: 706 Bytes

Versions: 22

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe "Regression testing" do
  describe "#248" do
    it "does not fail with github" do
      github_uri = "http://github.com/"
      expect { HTTP.get(github_uri).to_s }.not_to raise_error
    end

    it "does not fail with googleapis" do
      google_uri = "https://www.googleapis.com/oauth2/v1/userinfo?alt=json"
      expect { HTTP.get(google_uri).to_s }.not_to raise_error
    end
  end

  describe "#422" do
    it "reads body when 200 OK response contains Upgrade header" do
      res = HTTP.get("https://httpbin.org/response-headers?Upgrade=h2,h2c")
      expect(res.parse(:json)).to include("Upgrade" => "h2,h2c")
    end
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/http-5.2.0/spec/regression_specs.rb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
http-5.2.0 spec/regression_specs.rb
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/spec/regression_specs.rb
http-5.1.1 spec/regression_specs.rb
http-5.1.0 spec/regression_specs.rb
http-5.0.4 spec/regression_specs.rb
http-5.0.3 spec/regression_specs.rb
http-5.0.2 spec/regression_specs.rb
http-5.0.1 spec/regression_specs.rb
http-5.0.0 spec/regression_specs.rb
http-4.4.1 spec/regression_specs.rb
http-4.4.0 spec/regression_specs.rb
http-5.0.0.pre3 spec/regression_specs.rb
http-5.0.0.pre2 spec/regression_specs.rb
http-4.3.0 spec/regression_specs.rb