module Net::SSH::Test
def assert_scripted
been built, and the SSH commands being tested are then executed within
processed. Typically, this is called immediately after a story has
and then asserts that all items described in the script have been
First asserts that a story has been described (see #story). Then yields,
def assert_scripted raise "there is no script to be processed" if socket.script.events.empty? Net::SSH::Test::Extensions::IO.with_test_extension { yield } assert socket.script.events.empty?, "there should not be any remaining scripted events, but there are still" \ "#{socket.script.events.length} pending" end