module Net::SSH::Test

def connection(options = {})

a mock socket (#socket).
in these tests. It is a fully functional SSH session, operating over
Returns the connection session (Net::SSH::Connection::Session) for use
def connection(options = {})
  @connection ||= Net::SSH::Connection::Session.new(transport(options), options)
end