Sha256: 79d099c6dcc5fa3ef99f7049fe7696c74043c016def4475ea864fc5f300023e1
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe 'Smoke test', reactor: true do include_context :server_client_pair let(:response) { client.request(:get, '/') } let(:request) { intercepted_requests[0] } it 'exchanges request and response' do expect(response.status).to be(200) expect(response.headers).to include('Content-Length' => '1') expect(response.body.to_s).to eq('/') expect(request.http_method).to be(:get) expect(request.uri).to eq('/') expect(request.headers).not_to have_key('Content-Length') expect(request.body.to_s).to eq('') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
httpkit-0.6.0 | spec/integration/smoke_spec.rb |
httpkit-0.6.0.pre.5 | spec/integration/smoke_spec.rb |