Sha256: 0f5c73757820a51d7c0cd6c8f30eaf61d0021ebb7f2a3ebe3960abed0e439818

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

require 'net/http'

describe "Net::HTTPResponse.body_permitted?" do
  it "returns true if this response type can have a response body" do
    Net::HTTPUnknownResponse.body_permitted?.should == true
    Net::HTTPInformation.body_permitted?.should == false
    Net::HTTPSuccess.body_permitted?.should == true
    Net::HTTPRedirection.body_permitted?.should == true
    Net::HTTPClientError.body_permitted?.should == true
    Net::HTTPServerError.body_permitted?.should == true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-net-http-1.0.1 spec/httpresponse/body_permitted_spec.rb
rubysl-net-http-2.0.4 spec/httpresponse/body_permitted_spec.rb
rubysl-net-http-1.0.0 spec/httpresponse/body_permitted_spec.rb