test/functional/eft_4_set.rb in ruote-2.1.7 vs test/functional/eft_4_set.rb in ruote-2.1.8
- old
+ new
@@ -20,11 +20,11 @@
end
end
#noisy
- assert_trace pdef, '-0-'
+ assert_trace '-0-', pdef
end
def test_set_to_nil
pdef = Ruote.process_definition do
@@ -34,11 +34,11 @@
end
end
#noisy
- assert_trace pdef, '--'
+ assert_trace '--', pdef
end
def test_set_var_in_subprocess
pdef = Ruote.process_definition do
@@ -58,11 +58,11 @@
end
end
#noisy
- assert_trace pdef, %w[ a b0 c0 d1 e0 ]
+ assert_trace %w[ a b0 c0 d1 e0 ], pdef
end
def test_unset_var
pdef = Ruote.process_definition do
@@ -74,11 +74,11 @@
end
end
#noisy
- assert_trace pdef, %w[ -0- -- ]
+ assert_trace %w[ -0- -- ], pdef
end
def test_set_field
pdef = Ruote.process_definition do
@@ -88,11 +88,11 @@
end
end
#noisy
- assert_trace pdef, '-0-'
+ assert_trace '-0-', pdef
end
def test_set_field_to_array
pdef = Ruote.process_definition do
@@ -102,11 +102,11 @@
end
end
#noisy
- assert_trace pdef, '-b-'
+ assert_trace '-b-', pdef
end
def test_set_field_deep
pdef = Ruote.process_definition do
@@ -117,11 +117,11 @@
end
end
#noisy
- assert_trace pdef, '-aBc-'
+ assert_trace '-aBc-', pdef
end
def test_missing_value
pdef = Ruote.process_definition do
@@ -132,11 +132,11 @@
@engine.register_participant :alpha do |workitem|
workitem.fields.delete('params')
@tracer << workitem.fields.inspect
end
- assert_trace pdef, "{\"f\"=>nil}"
+ assert_trace '{"f"=>nil}', pdef
end
def test_field_value
pdef = Ruote.process_definition do
@@ -147,11 +147,11 @@
end
end
#noisy
- assert_trace pdef, 'toto:toto'
+ assert_trace 'toto:toto', pdef
end
def test_escape
pdef = Ruote.process_definition do
@@ -168,11 +168,11 @@
@tracer << "\n"
end
#noisy
- assert_trace pdef, %w[ nada:${nada} nada:${nada} ]
+ assert_trace %w[ nada:${nada} nada:${nada} ], pdef
end
def test_simpler_set
pdef = Ruote.process_definition do
@@ -190,11 +190,11 @@
end
end
#noisy
- assert_trace pdef, %w[ 0/1/2 // ]
+ assert_trace %w[ 0/1/2 // ], pdef
end
def test_simpler_and_nested
pdef = Ruote.process_definition do
@@ -205,10 +205,10 @@
end
end
#noisy
- assert_trace pdef, '0/1'
+ assert_trace '0/1', pdef
end
def test_set_at_engine_level_is_forbidden
pdef = Ruote.process_definition do