module Net::SSH::Test::Extensions::Channel

  1. lib/net/ssh/test/extensions.rb
Parent: Extensions

An extension to Net::SSH::Connection::Channel. Facilitates unit testing.

Methods

Public Instance

  1. send_data_for_test

Public Instance methods

send_data_for_test (data)

The testing version of Net::SSH::Connection::Channel#send_data. Calls the original implementation, and then immediately enqueues the data for output so that scripted sends are properly interpreted as discrete (rather than concatenated) data packets.

[show source]
# File lib/net/ssh/test/extensions.rb, line 103
def send_data_for_test(data)
  send_data_for_real(data)
  enqueue_pending_output
end