test/functional/eft_4_set.rb in ruote-2.1.11 vs test/functional/eft_4_set.rb in ruote-2.2.0

- old
+ new

@@ -221,11 +221,25 @@ wfid = @engine.launch(pdef) wait_for(wfid) - ps = @engine.process(wfid) + assert_nil @engine.process(wfid) + assert_nil @engine.variables['v'] + end - assert_equal 1, ps.errors.size + # 'rset' is an alias for 'set'. + # + # motivation at http://groups.google.com/group/openwferu-users/browse_thread/thread/9ac606e30ada686e + # + def test_rset + + wfid = @engine.launch(Ruote.define do + rset 'developer' => 'Rebo' + end) + + r = @engine.wait_for(wfid) + + assert_equal 'Rebo', r['workitem']['fields']['developer'] end end