test/functional/ft_17_conditional.rb in ruote-2.1.7 vs test/functional/ft_17_conditional.rb in ruote-2.1.8
- old
+ new
@@ -27,11 +27,11 @@
echo 'd', :if => '${f:d} is set'
echo 'e', :if => '${f:e} is set'
end
end
- assert_trace(pdef, %w[ 2 a b d ])
+ assert_trace(%w[ 2 a b d ], pdef)
end
def test_string_equality_when_space
pdef = Ruote.process_definition :name => 'test' do
@@ -47,11 +47,11 @@
echo 'c', :if => "${f:d} == 'some dude'"
echo 'd', :if => '${f:d} is set'
end
end
- assert_trace(pdef, "some dude\na\nb\nd")
+ assert_trace("some dude\na\nb\nd", pdef)
end
def test_unless
pdef = Ruote.process_definition :name => 'test' do
@@ -60,17 +60,17 @@
echo 'u', :unless => '${f:f} == 2000'
echo 'i', :if => '${f:f} == 2000'
echo '.'
end
- assert_trace(pdef, { 'f' => 2000 }, %w[ 2000 i . ])
+ assert_trace(%w[ 2000 i . ], { 'f' => 2000 }, pdef)
@tracer.clear
- assert_trace(pdef, { 'f' => '2000' }, %w[ 2000 i . ])
+ assert_trace(%w[ 2000 i . ], { 'f' => '2000' }, pdef)
@tracer.clear
- assert_trace(pdef, { 'f' => 'other' }, %w[ other u . ])
+ assert_trace(%w[ other u . ], { 'f' => 'other' }, pdef)
end
end