Sha256: 7c84398045c2ac3546a6b8db02988390dbf2940f012469b8f90bd81fa6993954

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 Bytes

Contents

#
# testing ruote
#
# Mon Jul 27 09:17:51 JST 2009
#

require File.join(File.dirname(__FILE__), 'base')


class FtForgetTest < Test::Unit::TestCase
  include FunctionalBase

  def test_basic

    pdef = Ruote.process_definition do
      sequence do
        alpha :forget => true
        alpha
      end
    end

    @engine.register_participant :alpha do
      @tracer << "alpha\n"
    end

    #noisy

    wfid = @engine.launch(pdef)

    wait_for(wfid)
    wait_for(wfid)

    assert_equal %w[ alpha alpha ].join("\n"), @tracer.to_s

    #logger.log.each { |e| p e }

    assert_equal 1, logger.log.select { |e| e['action'] == 'ceased' }.size
    assert_equal 1, logger.log.select { |e| e['action'] == 'terminated' }.size
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruote-2.1.9 test/functional/ft_21_forget.rb
ruote-2.1.8 test/functional/ft_21_forget.rb
ruote-2.1.7 test/functional/ft_21_forget.rb
ruote-2.1.6 test/functional/ft_21_forget.rb
ruote-2.1.5 test/functional/ft_21_forget.rb
ruote-2.1.4 test/functional/ft_21_forget.rb