test/ft_46_pparams.rb in ruote-0.9.18 vs test/ft_46_pparams.rb in ruote-0.9.19
- old
+ new
@@ -8,55 +8,55 @@
require 'flowtestbase'
require 'openwfe/def'
class FlowTest46 < Test::Unit::TestCase
- include FlowTestBase
+ include FlowTestBase
- #def setup
- #end
+ #def setup
+ #end
- #def teardown
- #end
+ #def teardown
+ #end
- #
- # Test 0
- #
+ #
+ # Test 0
+ #
- class TestPTask46a0 < OpenWFE::ProcessDefinition
- sequence do
+ class TestPTask46a0 < OpenWFE::ProcessDefinition
+ sequence do
- participant :ref => :nemo, :description => "clean the desk"
+ participant :ref => :nemo, :description => "clean the desk"
- _print "${f:description}"
- # just checking that the description is wiped after usage
+ _print "${f:description}"
+ # just checking that the description is wiped after usage
- participant :ref => :nemo, :task => "force"
+ participant :ref => :nemo, :task => "force"
- _print "${f:task}"
- end
+ _print "${f:task}"
end
+ end
- def test_0
+ def test_0
- @engine.register_participant :nemo do |workitem|
- @tracer.puts workitem.params['ref']
- @tracer.puts workitem.params['description']
- @tracer.puts workitem.params['task']
- end
+ @engine.register_participant :nemo do |workitem|
+ @tracer.puts workitem.params['ref']
+ @tracer.puts workitem.params['description']
+ @tracer.puts workitem.params['task']
+ end
- dotest(
- TestPTask46a0,
- """
+ dotest(
+ TestPTask46a0,
+ """
nemo
clean the desk
nemo
force
- """.strip)
- end
+ """.strip)
+ end
end