Sha256: 1f1811ba6c647419aa85e84b6166b65b44fecca41f8068e6b3cc5496790ec366

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

require 'net/http'
require File.expand_path('../shared/version_1_2', __FILE__)

describe "Net::HTTP.version_1_2" do
  it "turns on net/http 1.2 features" do
    Net::HTTP.version_1_2

    Net::HTTP.version_1_2?.should be_true
    Net::HTTP.version_1_1?.should be_false
  end

  it "returns true" do
    Net::HTTP.version_1_2.should be_true
  end
end

describe "Net::HTTP.version_1_2?" do
  it_behaves_like :net_http_version_1_2_p, :version_1_2?
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-net-http-1.0.1 spec/http/version_1_2_spec.rb
rubysl-net-http-2.0.4 spec/http/version_1_2_spec.rb
rubysl-net-http-1.0.0 spec/http/version_1_2_spec.rb