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