Sha256: 3c8dc8e5749c2a325cab2ea2ea7d8d54e84d47657a6cdb92ddf92fe1179dad71
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
# # testing ruote # # Tue Jun 23 10:55:16 JST 2009 # require File.join(File.dirname(__FILE__), 'base') class FtLaunchitemTest < Test::Unit::TestCase include FunctionalBase def test_launch pdef = Ruote.process_definition do alpha end @engine.register_participant :alpha do |workitem| stash[:fields] = workitem.fields @tracer << 'a' nil end #noisy wfid = @engine.launch(pdef, 'a' => 0, 'b' => 1) wait_for(wfid) assert_equal('a', @tracer.to_s) @engine.context.stash[:fields].delete('__result__') assert_not_nil( @engine.context.stash[:fields].delete('dispatched_at')) assert_equal( {"a"=>0, "b"=>1, "params"=>{"ref"=>"alpha"}}, @engine.context.stash[:fields]) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruote-maestrodev-2.2.1 | test/functional/ft_12_launchitem.rb |
ruote-2.2.0 | test/functional/ft_12_launchitem.rb |