Sha256: 267612e15956a34969a8d34510a9d0c45414bd3625954c4e328dfe0fb2027bbc

Contents?: true

Size: 423 Bytes

Versions: 32

Compression:

Stored size: 423 Bytes

Contents

require 'spec_helper'

describe Restfully::HTTP::Helper do
  include Restfully::HTTP::Helper
  
  it "should correctly sanitize the headers" do
    sanitize_head({
      'Cache-control' => 'no-cache',
      :some_header => 'some value',
      'accept' => 'application/json'
    }).should == {
      'Cache-Control' => 'no-cache',
      'Some-Header' => 'some value',
      'Accept' => 'application/json'
    }
  end
  
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
restfully-1.3.0 spec/restfully/http/helper_spec.rb
restfully-1.2.0 spec/restfully/http/helper_spec.rb
restfully-1.1.1 spec/restfully/http/helper_spec.rb
restfully-1.1.0 spec/restfully/http/helper_spec.rb
restfully-1.0.8 spec/restfully/http/helper_spec.rb
restfully-1.0.7 spec/restfully/http/helper_spec.rb
restfully-1.0.6 spec/restfully/http/helper_spec.rb
restfully-1.0.5 spec/restfully/http/helper_spec.rb
restfully-1.0.4 spec/restfully/http/helper_spec.rb
restfully-1.0.3 spec/restfully/http/helper_spec.rb
restfully-1.0.2 spec/restfully/http/helper_spec.rb
restfully-1.0.1 spec/restfully/http/helper_spec.rb
restfully-1.0.0 spec/restfully/http/helper_spec.rb
restfully-1.0.0.rc2 spec/restfully/http/helper_spec.rb
restfully-1.0.0.rc1 spec/restfully/http/helper_spec.rb
restfully-0.8.8 spec/restfully/http/helper_spec.rb
restfully-0.8.7 spec/restfully/http/helper_spec.rb
restfully-0.8.6 spec/restfully/http/helper_spec.rb
restfully-0.8.5 spec/restfully/http/helper_spec.rb
restfully-0.8.4 spec/restfully/http/helper_spec.rb