Sha256: a4cf113ef9bcf1e9027b73d0698a52c492397190b03b325aa09c68ad9ee97aa5
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
# # testing ruote # # Thu Dec 9 16:39:54 JST 2010 # require 'stringio' require File.expand_path('../base', __FILE__) class FtMiscTest < Test::Unit::TestCase include FunctionalBase def test_noisy result = String.new out = StringIO.new(result, 'w+') prev = $stdout $stdout = out @dashboard.noisy = true wfid = @dashboard.launch(Ruote.define do echo 'nada' end) @dashboard.wait_for(wfid) out.close $stdout = prev assert_not_nil result end class NoCancel def consume(workitem) # do nothing end # no cancel method implementation end def test_participant_missing_cancel_method pdef = Ruote.define do participant 'no_cancel' end @dashboard.register 'no_cancel', NoCancel #@dashboard.noisy = true wfid = @dashboard.launch(pdef) @dashboard.wait_for(:no_cancel) @dashboard.cancel(wfid) @dashboard.wait_for(wfid) assert_match( /undefined method `on_cancel' for/, @dashboard.ps(wfid).errors.first.message) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.3.0.3 | test/functional/ft_51_misc.rb |
ruote-2.3.0.2 | test/functional/ft_51_misc.rb |
ruote-2.3.0.1 | test/functional/ft_51_misc.rb |
ruote-2.3.0 | test/functional/ft_51_misc.rb |