From 380459060dc6ca5c2207c520795c26b75e9390fb Mon Sep 17 00:00:00 2001 From: Kaspar Schiess Date: Mon, 19 Apr 2010 14:57:39 +0800 Subject: [PATCH] . Clarifying a hack in spec code --- spec/integration/ssl_ber_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/integration/ssl_ber_spec.rb b/spec/integration/ssl_ber_spec.rb index 20f3eac..4f40a20 100644 --- a/spec/integration/ssl_ber_spec.rb +++ b/spec/integration/ssl_ber_spec.rb @@ -16,6 +16,9 @@ describe "BER serialisation (SSL)" do before(:each) do @from, @to = IO.pipe + # The production code operates on sockets, which do need #connect called + # on them to work. Pipes are more robust for this test, so we'll skip + # the #connect call since it fails. flexmock(OpenSSL::SSL::SSLSocket). new_instances.should_receive(:connect => nil)