Sha256: b9a544ec7147d5ccaec27d17584ee7c1a2ed5046371f43d8b0ba02a22e3a92c7
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#mkcol" do before(:all) do NetHTTPSpecs.start_server end after(:all) do NetHTTPSpecs.stop_server end before(:each) do @http = Net::HTTP.start("localhost", 3333) end after(:each) do @http.finish if @http.started? end it "sends a MKCOL request to the passed path and returns the response" do response = @http.mkcol("/request") response.should be_kind_of(Net::HTTPResponse) response.body.should == "Request type: MKCOL" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-http-1.0.1 | spec/http/mkcol_spec.rb |
rubysl-net-http-2.0.4 | spec/http/mkcol_spec.rb |
rubysl-net-http-1.0.0 | spec/http/mkcol_spec.rb |