summaryrefslogtreecommitdiff
path: root/lib/net/ssh/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/test.rb')
-rw-r--r--lib/net/ssh/test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/ssh/test.rb b/lib/net/ssh/test.rb
index d97eebf..cb727ba 100644
--- a/lib/net/ssh/test.rb
+++ b/lib/net/ssh/test.rb
@@ -56,21 +56,21 @@ module Net
# Returns the test socket instance to use for these tests (see
# Net::SSH::Test::Socket).
- def socket(options={})
+ def socket(options = {})
@socket ||= Net::SSH::Test::Socket.new
end
# Returns the connection session (Net::SSH::Connection::Session) for use
# in these tests. It is a fully functional SSH session, operating over
# a mock socket (#socket).
- def connection(options={})
+ def connection(options = {})
@connection ||= Net::SSH::Connection::Session.new(transport(options), options)
end
# Returns the transport session (Net::SSH::Transport::Session) for use
# in these tests. It is a fully functional SSH transport session, operating
# over a mock socket (#socket).
- def transport(options={})
+ def transport(options = {})
@transport ||= Net::SSH::Transport::Session.new(
options[:host] || "localhost",
options.merge(kex: "test", host_key: "ssh-rsa", append_all_supported_algorithms: true, verify_host_key: :never, proxy: socket(options))