summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/http/proxy_class_spec.rb
blob: 30d38a93e72c1c080714b806f434837eb50d8c42 (plain)
1
2
3
4
5
6
7
8
9
require File.expand_path('../../../../../spec_helper', __FILE__)
require 'net/http'

describe "Net::HTTP.proxy_class?" do
  it "returns true if sels is a class created with Net::HTTP.Proxy" do
    Net::HTTP.proxy_class?.should be_false
    Net::HTTP.Proxy("localhost").proxy_class?.should be_true
  end
end