Skip to content

Commit 3804590

Browse files
kschiesshalostatue
authored andcommitted
. Clarifying a hack in spec code
1 parent a5e10e9 commit 3804590

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/integration/ssl_ber_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def transmit(str)
1616
before(:each) do
1717
@from, @to = IO.pipe
1818

19+
# The production code operates on sockets, which do need #connect called
20+
# on them to work. Pipes are more robust for this test, so we'll skip
21+
# the #connect call since it fails.
1922
flexmock(OpenSSL::SSL::SSLSocket).
2023
new_instances.should_receive(:connect => nil)
2124

0 commit comments

Comments
 (0)