Sha256: 3bae2e93a4be939eb15d785734a0f9609d6d8ce2c67314e9e934ac8da813b5a1
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
require 'net/http' require File.expand_path('../fixtures/classes', __FILE__) describe "Net::HTTPHeader#chunked?" do before(:each) do @headers = NetHTTPHeaderSpecs::Example.new end it "returns true if the 'Transfer-Encoding' header entry is set to chunked" do @headers.chunked?.should be_false @headers["Transfer-Encoding"] = "bla" @headers.chunked?.should be_false @headers["Transfer-Encoding"] = "blachunkedbla" @headers.chunked?.should be_false @headers["Transfer-Encoding"] = "chunked" @headers.chunked?.should be_true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-http-1.0.1 | spec/httpheader/chunked_spec.rb |
rubysl-net-http-2.0.4 | spec/httpheader/chunked_spec.rb |
rubysl-net-http-1.0.0 | spec/httpheader/chunked_spec.rb |