test/functional/eft_15_loop.rb in ruote-2.2.0 vs test/functional/eft_15_loop.rb in ruote-2.3.0
- old
+ new
@@ -3,11 +3,11 @@
# testing ruote
#
# Mon Jun 29 22:29:15 JST 2009
#
-require File.join(File.dirname(__FILE__), 'base')
+require File.expand_path('../base', __FILE__)
class EftLoopTest < Test::Unit::TestCase
include FunctionalBase
@@ -20,20 +20,20 @@
end
end
#noisy
- @engine.register_participant :alpha do |workitem|
+ @dashboard.register_participant :alpha do |workitem|
- @tracer << "a\n"
+ tracer << "a\n"
(workitem.fields['count'] ||= 0)
workitem.fields['count'] += 1
end
- @engine.register_participant :bravo do |workitem|
+ @dashboard.register_participant :bravo do |workitem|
- @tracer << "b\n"
+ tracer << "b\n"
workitem.fields['count'] += 1
if workitem.fields['count'] > 5
workitem.fields['__command__'] = [ 'break', nil ]
end
@@ -50,12 +50,12 @@
end
end
#noisy
- @engine.register_participant :alpha do |workitem|
+ @dashboard.register_participant :alpha do |workitem|
- @tracer << "a\n"
+ tracer << "a\n"
(workitem.fields['count'] ||= 0)
workitem.fields['count'] += 1
if workitem.fields['count'] > 5
workitem.fields['__command__'] = [ 'break', nil ]