Created
June 14, 2013 22:09
-
-
Save jmettraux/5785678 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_update_workitem_alt | |
@dashboard.register_participant 'alpha', Ruote::StorageParticipant | |
wfid = @dashboard.launch(Ruote.process_definition { alpha }) | |
wait_for(:alpha) | |
#wi = @dashboard.process(wfid).workitems.first | |
#alpha = @dashboard.participant(wi.participant_name) | |
alpha = @dashboard.participant('alpha') | |
wi = alpha.first | |
wi.set_field('my_field', 'abc123') | |
alpha.update(wi) | |
assert_equal nil, @dashboard.process(wfid).workitems.first.fields['my_field'] | |
assert_equal 'abc123', alpha.first.fields['my_field'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment