Sha256: 9871b68d38853ee923d63411f07bdca5cfd5c6c2e42f8e03d3c91de919f34a9f
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#head" 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 MOVE request to the passed path and returns the response" do response = @http.move("/request") # HEAD requests have no responses response.body.should == "Request type: MOVE" end it "returns a Net::HTTPResponse" do @http.move("/request").should be_kind_of(Net::HTTPResponse) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-http-1.0.1 | spec/http/move_spec.rb |
rubysl-net-http-2.0.4 | spec/http/move_spec.rb |
rubysl-net-http-1.0.0 | spec/http/move_spec.rb |