summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpgenericrequest/path_spec.rb
blob: e48d37b0e93b490e465d085cee609cebc8fbb726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path('../../../../../spec_helper', __FILE__)
require 'net/http'

describe "Net::HTTPGenericRequest#path" do
  it "returns self's request path" do
    request = Net::HTTPGenericRequest.new("POST", true, true, "/some/path")
    request.path.should == "/some/path"

    request = Net::HTTPGenericRequest.new("POST", true, true, "/some/other/path")
    request.path.should == "/some/other/path"
  end
end