test/functional/ft_51_misc.rb in ruote-2.2.0 vs test/functional/ft_51_misc.rb in ruote-2.3.0
- old
+ new
@@ -4,11 +4,11 @@
#
# Thu Dec 9 16:39:54 JST 2010
#
require 'stringio'
-require File.join(File.dirname(__FILE__), 'base')
+require File.expand_path('../base', __FILE__)
class FtMiscTest < Test::Unit::TestCase
include FunctionalBase
@@ -18,17 +18,17 @@
out = StringIO.new(result, 'w+')
prev = $stdout
$stdout = out
- @engine.noisy = true
+ @dashboard.noisy = true
- wfid = @engine.launch(Ruote.define do
+ wfid = @dashboard.launch(Ruote.define do
echo 'nada'
end)
- @engine.wait_for(wfid)
+ @dashboard.wait_for(wfid)
out.close
$stdout = prev
assert_not_nil result
@@ -45,23 +45,23 @@
pdef = Ruote.define do
participant 'no_cancel'
end
- @engine.register 'no_cancel', NoCancel
+ @dashboard.register 'no_cancel', NoCancel
- #noisy
+ #@dashboard.noisy = true
- wfid = @engine.launch(pdef)
+ wfid = @dashboard.launch(pdef)
- @engine.wait_for(:no_cancel)
+ @dashboard.wait_for(:no_cancel)
- @engine.cancel(wfid)
+ @dashboard.cancel(wfid)
- @engine.wait_for(wfid)
+ @dashboard.wait_for(wfid)
assert_match(
- /undefined method `cancel' for/,
- @engine.ps(wfid).errors.first.message)
+ /undefined method `on_cancel' for/,
+ @dashboard.ps(wfid).errors.first.message)
end
end