summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpgenericrequest/path_spec.rb
blob: fc4cf9af5392f70061b3af09832328c8f57ed3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../../../../spec_helper'
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