Sha256: ea36ad095782d84a4fc2fb7b02fdcb2393bedcc6c89a89cff2d1a57cec8aea1e
Contents?: true
Size: 473 Bytes
Versions: 12
Compression:
Stored size: 473 Bytes
Contents
require 'spec_helper' module Seahorse module Client module Plugins describe ContentLength::Handler do it 'adds content-length to regular payload' do handler = ContentLength::Handler.new(lambda { |context| }) context = RequestContext.new context.http_request.body = 'BODY' handler.call(context) expect(context.http_request.headers['Content-Length']).to eq('4') end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems