Sha256: 1e78b4cbcb71ac264aa614648d43852765b32455ba1b829599c9f407454b10f7
Contents?: true
Size: 710 Bytes
Versions: 48
Compression:
Stored size: 710 Bytes
Contents
require File.expand_path('../../../../../spec_helper', __FILE__) require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#proppatch" do before(:all) do NetHTTPSpecs.start_server end after(:all) do NetHTTPSpecs.stop_server end before(:each) do @http = Net::HTTP.start("127.0.0.1", NetHTTPSpecs.server_port) end it "sends an proppatch request to the passed path and returns the response" do response = @http.proppatch("/request", "test=test") response.body.should == "Request type: PROPPATCH" end it "returns a Net::HTTPResponse" do @http.proppatch("/request", "test=test").should be_kind_of(Net::HTTPResponse) end end
Version data entries
48 entries across 48 versions & 2 rubygems