test/functional/eft_15_loop.rb in ruote-2.1.11 vs test/functional/eft_15_loop.rb in ruote-2.2.0
- old
+ new
@@ -32,12 +32,13 @@
@engine.register_participant :bravo do |workitem|
@tracer << "b\n"
workitem.fields['count'] += 1
- workitem.fields['__command__'] = [ 'break', nil ] \
- if workitem.fields['count'] > 5
+ if workitem.fields['count'] > 5
+ workitem.fields['__command__'] = [ 'break', nil ]
+ end
end
assert_trace(%w[ a b a b a b ], pdef)
end
@@ -55,11 +56,12 @@
@tracer << "a\n"
(workitem.fields['count'] ||= 0)
workitem.fields['count'] += 1
- workitem.fields['__command__'] = [ 'break', nil ] \
- if workitem.fields['count'] > 5
+ if workitem.fields['count'] > 5
+ workitem.fields['__command__'] = [ 'break', nil ]
+ end
end
assert_trace(%w[ a a a a a a ], pdef)
end
end