test/functional/ft_10_dollar.rb in ruote-2.1.10 vs test/functional/ft_10_dollar.rb in ruote-2.1.11

- old
+ new

@@ -152,11 +152,11 @@ #noisy assert_trace 'AA', pdef end - def test_wfid + def test_fei_and_wfid pdef = Ruote.process_definition do sequence do echo '${fei}' echo '${wfid}' @@ -166,8 +166,24 @@ wfid = @engine.launch(pdef) @engine.wait_for(wfid) assert_equal "0_0_0!!#{wfid}\n#{wfid}", @tracer.to_s + end + + def test_direct_access_to_fields + + pdef = Ruote.process_definition do + sequence do + set 'f:a' => [ 'alpha', 'bravo', 'charly' ] + echo '${r:a.join("/")}' + end + end + + @engine.context['ruby_eval_allowed'] = true + + #noisy + + assert_trace 'alpha/bravo/charly', pdef end end