Sha256: b25365c4a115afa51b262f8390277fb08917870d725a86a601c2d55f6404e47b
Contents?: true
Size: 594 Bytes
Versions: 3
Compression:
Stored size: 594 Bytes
Contents
# encoding: utf-8 shared_context :server_client_pair do let(:server_config) { { handlers: [SpecHandler] } } let(:client_config) { { handlers: [] } } let(:interceptor) { double('interceptor') } let(:server_and_client) do server_client_pair(server_config, client_config, interceptor) end let(:intercepted_requests) { [] } before do allow(interceptor) .to receive(:serve) { |request| intercepted_requests << request } end let!(:server) { server_and_client[0] } let!(:client) { server_and_client[1] } after do server.close client.close end end
Version data entries
3 entries across 3 versions & 1 rubygems