Sha256: 41d3de60f81229e0500ba6f5edaa76af50bfbe777a19be063f3ac55c425931d4
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
require 'spec_helper' require File.join(File.dirname(__FILE__), '../../', 'examples/async_upload') describe 'Async Request processing' do include Goliath::TestHelper it 'asynchronously processes the incoming request' do with_api(AsyncUpload) do request_data = { :body => {:some => :data}, :head => {'X-Upload' => 'custom'} } err = Proc.new { fail "API request failed" } post_request(request_data, err) do |c| resp = Yajl::Parser.parse(c.response) resp['body'].should match('some=data') resp['head'].should include('X-Upload') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
goliath-0.9.0 | spec/integration/async_request_processing.rb |