test/functional/eft_13_iterator.rb in ruote-2.1.7 vs test/functional/eft_13_iterator.rb in ruote-2.1.8
- old
+ new
@@ -21,11 +21,11 @@
end
end
#noisy
- assert_trace(pdef, 'done.')
+ assert_trace('done.', pdef)
end
def test_iterator
pdef = Ruote.process_definition :name => 'test' do
@@ -38,11 +38,11 @@
@tracer << "#{workitem.participant_name}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ alice/0_0_0 bob/0_0_0 charly/0_0_0 ])
+ assert_trace(%w[ alice/0_0_0 bob/0_0_0 charly/0_0_0 ], pdef)
end
def test_to_f
pdef = Ruote.process_definition :name => 'test' do
@@ -55,11 +55,11 @@
@tracer << "#{workitem.fields['f']}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ alice/0_0_0 bob/0_0_0 charly/0_0_0 ])
+ assert_trace(%w[ alice/0_0_0 bob/0_0_0 charly/0_0_0 ], pdef)
end
PDEF0 = Ruote.process_definition :name => 'test' do
sequence do
iterator :on_val => 'alice, bob, charly', :to_var => 'v' do
@@ -79,11 +79,11 @@
if workitem.participant_name == 'bob'
end
#noisy
- assert_trace(PDEF0, %w[ alice bob done. ])
+ assert_trace(%w[ alice bob done. ], PDEF0)
end
def test_rewind
rewound = false
@@ -98,11 +98,11 @@
end
end
#noisy
- assert_trace(PDEF0, %w[ alice bob alice bob charly done. ])
+ assert_trace(%w[ alice bob alice bob charly done. ], PDEF0)
end
def test_skip
@engine.register_participant '.*' do |workitem|
@@ -113,11 +113,11 @@
if workitem.participant_name == 'alice'
end
#noisy
- assert_trace(PDEF0, %w[ alice charly done.])
+ assert_trace(%w[ alice charly done.], PDEF0)
end
def test_jump
@engine.register_participant '.*' do |workitem|
@@ -128,11 +128,11 @@
if workitem.participant_name == 'alice'
end
#noisy
- assert_trace(PDEF0, %w[ alice charly done.])
+ assert_trace(%w[ alice charly done.], PDEF0)
end
def test_skip_command
pdef = Ruote.process_definition :name => 'test' do
@@ -148,11 +148,11 @@
@tracer << "#{workitem.participant_name}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ alice/0_0_0_0 charly/0_0_0_0 ])
+ assert_trace(%w[ alice/0_0_0_0 charly/0_0_0_0 ], pdef)
end
def test_break_if
pdef = Ruote.process_definition :name => 'test' do
@@ -165,11 +165,11 @@
@tracer << "#{workitem.participant_name}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ a/0_0_0 b/0_0_0 ])
+ assert_trace(%w[ a/0_0_0 b/0_0_0 ], pdef)
end
def test_break_unless
pdef = Ruote.process_definition :name => 'test' do
@@ -183,11 +183,11 @@
@tracer << "#{workitem.participant_name}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ a/0_1_0 b/0_1_0 ])
+ assert_trace(%w[ a/0_1_0 b/0_1_0 ], pdef)
end
def test_iterator_with_hash_as_input
pdef = Ruote.process_definition :name => 'test' do
@@ -201,11 +201,11 @@
@tracer << "\n"
end
#noisy
- assert_trace pdef, %w[ a:A b:B ]
+ assert_trace %w[ a:A b:B ], pdef
end
def test_implicit_i_variable
pdef = Ruote.process_definition :name => 'test' do
@@ -218,11 +218,11 @@
@tracer << "#{workitem.participant_name}/#{workitem.fei.expid}\n"
end
#noisy
- assert_trace(pdef, %w[ alice:0/0_0_0 bob:1/0_0_0 charly:2/0_0_0 ])
+ assert_trace(%w[ alice:0/0_0_0 bob:1/0_0_0 charly:2/0_0_0 ], pdef)
end
def test_nested_break
pdef = Ruote.process_definition :name => 'test' do
@@ -239,11 +239,11 @@
end
end
#noisy
- assert_trace pdef, %w[ 0_a 1_a ]
+ assert_trace %w[ 0_a 1_a ], pdef
end
def test_external_break
pdef = Ruote.process_definition :name => 'test' do
@@ -259,9 +259,9 @@
end
end
#noisy
- assert_trace pdef, %w[ 1 2 ]
+ assert_trace %w[ 1 2 ], pdef
end
end