Sha256: 86b9958475acd46a42324ff57dfbaba51bcae8d4ed949e3d021ea328a69c2c28
Contents?: true
Size: 662 Bytes
Versions: 20
Compression:
Stored size: 662 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)+'/../spec_helper') describe Restfully::HTTP::Headers do class IncludeHeadersModule include Restfully::HTTP::Headers end it "should correctly parse headers" do sanitized_headers = IncludeHeadersModule.new.sanitize_http_headers('accept' => 'application/json', :x_remote_ident => 'crohr', 'X_GVI' => 'sid', 'CACHE-CONTROL' => ['max-age=0', 'no-cache'], 'Content-Length' => 22) sanitized_headers.should == { 'Accept' => 'application/json', 'X-Remote-Ident' => 'crohr', 'X-Gvi' => 'sid', 'Cache-Control' => 'max-age=0, no-cache', 'Content-Length' => 22 } end end
Version data entries
20 entries across 20 versions & 1 rubygems