Sha256: ae2786325ef1903b5167d9d58f494068a34a536fd0dfaf560bc7e5e17764de1e
Contents?: true
Size: 741 Bytes
Versions: 8
Compression:
Stored size: 741 Bytes
Contents
shared_context "complex cross-concern behaviors" do |*adapter_info| it 'allows a response with multiple values for the same header to be recorded and played back exactly as-is' do WebMock.allow_net_connect! recorded_response = nil WebMock.after_request { |_,r| recorded_response = r } real_response = http_request(:get, webmock_server_url) stub_request(:get, webmock_server_url).to_return( :status => recorded_response.status, :body => recorded_response.body, :headers => recorded_response.headers ) played_back_response = http_request(:get, webmock_server_url) played_back_response.headers.keys.should include('Set-Cookie') played_back_response.should == real_response end end
Version data entries
8 entries across 8 versions & 1 rubygems