Sha256: d3c14246bc761040c2e9153190b887e335a55b97330e213311350704590fc9d5

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../../spec_helper'
require 'net/http'

describe "Net::HTTPGenericRequest#response_body_permitted?" do
  it "returns true when the response is expected to have a body" do
    request = Net::HTTPGenericRequest.new("POST", true, true, "/some/path")
    request.response_body_permitted?.should be_true

    request = Net::HTTPGenericRequest.new("POST", true, false, "/some/path")
    request.response_body_permitted?.should be_false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/library/net/http/httpgenericrequest/response_body_permitted_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/library/net/http/httpgenericrequest/response_body_permitted_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/library/net/http/httpgenericrequest/response_body_permitted_spec.rb