Sha256: 707415043bf541fb36ff16e95bd82da988f4a01c54b2675b339c5768240b562a
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#options" 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 an options request to the passed path and returns the response" do response = @http.options("/request") # OPTIONS responses have no bodies response.body.should be_nil end it "returns a Net::HTTPResponse" do @http.options("/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/options_spec.rb |
rubysl-net-http-2.0.4 | spec/http/options_spec.rb |
rubysl-net-http-1.0.0 | spec/http/options_spec.rb |