Method: StreamTest#test_process

Defined in:
lib/vendor/xmpp4r/test/tc_stream.rb

#test_processObject

tests that connection really waits the call to process() to dispatch stanzas to filters



39
40
41
42
43
44
45
46
# File 'lib/vendor/xmpp4r/test/tc_stream.rb', line 39

def test_process
  called = false
  @stream.add_xml_callback { called = true }
  assert(!called)
  @server.puts(STREAM)
  @server.flush
  assert(called)
end