require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../../spec_helper' require 'net/http' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + "/fixtures/classes" 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