Sha256: 3af052b30e5e3daad92b3adcb2451a84de775bfa253a3a02be1c28452c072d69
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 Bytes
Contents
# # testing ruote # # Thu Jul 2 12:51:54 JST 2009 # require File.join(File.dirname(__FILE__), 'base') require File.join(File.dirname(__FILE__), 'restart_base') require 'ruote/participant' class RtListenTest < Test::Unit::TestCase include FunctionalBase include RestartBase def test_listen_and_restart start_new_engine pdef = Ruote.process_definition do concurrence do sequence do listen :to => '/^al.*/', :upon => 'reply' echo 'done.' end alpha end end #puts; noisy alpha = @engine.register_participant :alpha, Ruote::StorageParticipant wfid = @engine.launch(pdef) wait_for(:alpha) assert_equal '', @tracer.to_s @engine.shutdown start_new_engine #puts; noisy @engine.reply(alpha.first) wait_for(wfid) assert_equal 'done.', @tracer.to_s end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruote-maestrodev-2.2.1 | test/functional/rt_1_listen.rb |
ruote-2.2.0 | test/functional/rt_1_listen.rb |