Sha256: 77470898f886ea25077269855b7ebd1269e57bae135cc596f20683fc6eb316f1
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# # testing ruote # # Wed Apr 6 08:39:36 JST 2011 # # Santa Barbara # require File.join(File.dirname(__FILE__), 'base') require 'ruote' class FtWorkitemTest < Test::Unit::TestCase include FunctionalBase class TraceParticipant include Ruote::LocalParticipant def consume(wi) @context.tracer << "#{wi.wf_name}/#{wi.wf_revision}\n" reply_to_engine(wi) end end def test_wf_info @engine.register :alpha, TraceParticipant #@engine.noisy = true assert_trace( 'x/y', Ruote.process_definition(:name => 'x', :revision => 'y') do alpha end, :clear) assert_trace( 'x/y', Ruote.process_definition('x', :revision => 'y') do alpha end, :clear) assert_trace( 'x/y', Ruote.process_definition('x', :rev => 'y') do alpha end, :clear) assert_trace( 'x/', Ruote.process_definition('x') do alpha end, :clear) assert_trace( '/', Ruote.process_definition do alpha end, :clear) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-maestrodev-2.2.1 | test/functional/ft_58_workitem.rb |