module Net::SSH::Test

def transport(options = {})

over a mock socket (#socket).
in these tests. It is a fully functional SSH transport session, operating
Returns the transport session (Net::SSH::Transport::Session) for use
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))
  )
end