test/functional/eft_26_error.rb in ruote-2.2.0 vs test/functional/eft_26_error.rb in ruote-2.3.0
- old
+ new
@@ -3,11 +3,11 @@
# testing ruote
#
# Tue Sep 15 19:26:33 JST 2009
#
-require File.join(File.dirname(__FILE__), 'base')
+require File.expand_path('../base', __FILE__)
class EftErrorTest < Test::Unit::TestCase
include FunctionalBase
@@ -21,15 +21,15 @@
def test_error
#noisy
- wfid = @engine.launch(PDEF0)
+ wfid = @dashboard.launch(PDEF0)
wait_for(wfid)
- ps = @engine.process(wfid)
+ ps = @dashboard.process(wfid)
assert_equal(
'a', @tracer.to_s)
assert_equal(
1, ps.errors.size)
@@ -40,38 +40,38 @@
def test_error_replay
#noisy
- wfid = @engine.launch(PDEF0)
+ wfid = @dashboard.launch(PDEF0)
wait_for(wfid)
- ps = @engine.process(wfid)
+ ps = @dashboard.process(wfid)
- @engine.replay_at_error(ps.errors.first)
+ @dashboard.replay_at_error(ps.errors.first)
wait_for(wfid)
- assert_nil @engine.process(wfid)
+ assert_nil @dashboard.process(wfid)
assert_equal "a\nb", @tracer.to_s
end
def test_error_cancel
- wfid = @engine.launch(PDEF0)
+ wfid = @dashboard.launch(PDEF0)
wait_for(wfid)
- ps = @engine.process(wfid)
+ ps = @dashboard.process(wfid)
sequence = ps.expressions.find { |fe| fe.fei.expid == '0_0' }
- @engine.cancel_expression(sequence.fei)
+ @dashboard.cancel_expression(sequence.fei)
wait_for(wfid)
- assert_nil @engine.process(wfid)
+ assert_nil @dashboard.process(wfid)
assert_equal 'a', @tracer.to_s
end
end