Sha256: 34688278a5c05686ee9393bda36cb6cf5111880529bc493a8623ca0c8125c0af
Contents?: true
Size: 922 Bytes
Versions: 3
Compression:
Stored size: 922 Bytes
Contents
# # Testing Ruote (OpenWFEru) # # Wed Jul 1 09:51:30 JST 2009 # require File.join(File.dirname(__FILE__), 'base') require 'ruote/part/hash_participant' class FtParticipantParamsTest < Test::Unit::TestCase include FunctionalBase def test_params pdef = Ruote.process_definition do sequence do alpha alpha :activity => 'buy groceries' alpha end end alpha = @engine.register_participant :alpha, Ruote::HashParticipant.new #noisy wfid = @engine.launch(pdef) wait_for(:alpha) assert_equal({ 'ref' => 'alpha' }, alpha.first.fields['params']) alpha.reply(alpha.first) wait_for(:alpha) assert_equal('buy groceries', alpha.first.fields['params']['activity']) alpha.reply(alpha.first) wait_for(:alpha) assert_equal({ 'ref' => 'alpha' }, alpha.first.fields['params']) alpha.reply(alpha.first) wait_for(wfid) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.1.3 | test/functional/ft_16_participant_params.rb |
ruote-2.1.2 | test/functional/ft_16_participant_params.rb |
ruote-2.1.1 | test/functional/ft_16_participant_params.rb |