. Clarifying a hack in spec code

master
Kaspar Schiess 2010-04-19 14:57:39 +08:00 committed by Austin Ziegler
parent a5e10e9e75
commit 380459060d
1 changed files with 3 additions and 0 deletions

View File

@ -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)