blob: a9fac3f67ef57b05b577fa86782225e250eda43e (
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
|