summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2015-01-27 10:20:03 +0100
committerMiklos Fazekas <mfazekas@szemafor.com>2015-01-27 10:34:22 +0100
commit161df7352eeb45310dee168d7e58348ad71258ba (patch)
tree993b6988d6798e23522cc797a024b54f64403282 /test
parent082d1ac9b883d68628390887c1240c45a71fb034 (diff)
downloadnet-ssh-161df7352eeb45310dee168d7e58348ad71258ba.tar.gz
Refactor proxy code
Diffstat (limited to 'test')
-rw-r--r--test/transport/test_session.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transport/test_session.rb b/test/transport/test_session.rb
index 88e8402..6c267ec 100644
--- a/test/transport/test_session.rb
+++ b/test/transport/test_session.rb
@@ -315,7 +315,7 @@ module Transport
def session(options={})
@session ||= begin
host = options.delete(:host) || "net.ssh.test"
- TCPSocket.stubs(:open).with(host, options[:port] || 22).returns(socket)
+ TCPSocket.stubs(:open).with(host, options[:port] || 22, nil).returns(socket)
Net::SSH::Transport::ServerVersion.stubs(:new).returns(server_version)
Net::SSH::Transport::Algorithms.stubs(:new).returns(algorithms)