Sha256: b50d06dfba16ac8c95856cf217136768701d7244e53fa67b4b3b9d3ece8179dc
Contents?: true
Size: 806 Bytes
Versions: 19
Compression:
Stored size: 806 Bytes
Contents
with_rackup('basic.ru') do Shindo.tests('requests should succeed') do connection = Excon.new('http://127.0.0.1:9292') tests('HEAD /content-length/100, GET /content-length/100') do responses = connection.requests([ {:method => :head, :path => '/content-length/100'}, {:method => :get, :path => '/content-length/100'} ]) tests('head body is empty').returns('') do responses.first.body end tests('head content length is 100').returns('100') do responses.first.headers['Content-Length'] end tests('get body is non-empty').returns('x' * 100) do responses.last.body end tests('get content length is 100').returns('100') do responses.last.headers['Content-Length'] end end end end
Version data entries
19 entries across 19 versions & 2 rubygems