require_relative '../../../../spec_helper'
require 'net/http'
require_relative 'shared/version_1_2'

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
