Sha256: 516254e2a84874f2e32fbfa8475ba83685963f49846b73788fc03e72638d66eb

Contents?: true

Size: 522 Bytes

Versions: 35

Compression:

Stored size: 522 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'resourceful'

describe Resourceful do

  describe 'setting headers' do
    before do
      @http = Resourceful::HttpAccessor.new
      @resource = @http.resource("http://localhost:42682/header")
    end

    it 'should handle "Content-Type"' do
      resp = @resource.post("asdf", :content_type => 'foo/bar')

      header = YAML.load(resp.body)

      header.should have_key('CONTENT_TYPE')
      header['CONTENT_TYPE'].should == 'foo/bar'

    end

  end
end

Version data entries

35 entries across 35 versions & 5 rubygems

Version Path
paul-resourceful-0.6.0 spec/acceptance/header_spec.rb
pezra-resourceful-0.5.4 spec/acceptance/header_spec.rb
pezra-resourceful-0.6.0 spec/acceptance/header_spec.rb
pezra-resourceful-0.7.0 spec/acceptance/header_spec.rb
abiquo-etk-0.6.4 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.6.3 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.6.2 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.6.1 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.6.0 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.5.9 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.5.8 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.5.3 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.42 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.33 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.32 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.29 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.25 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.24 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.23 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb
abiquo-etk-0.4.22 vendor/resourceful-1.0.1/spec/acceptance/header_spec.rb