Sha256: 96b4b5d5897eb765683b6db1fd5e311f751eee2aeffa036e13d2a7d7378d5743

Contents?: true

Size: 691 Bytes

Versions: 2

Compression:

Stored size: 691 Bytes

Contents

#
# testing ruote
#
# Mon Jun 15 21:18:06 JST 2009
#

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


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

  def test_cancel_process

    pdef = Ruote.process_definition do
      sequence do
        echo 'a'
        cancel_process
        echo 'b'
      end
    end

    #noisy

    assert_trace('a', pdef)

    #assert_equal 3, logger.log.select { |e| e[1] == :entered_tag }.size
  end

  def test_unless

    pdef = Ruote.process_definition do
      sequence do
        echo 'a'
        terminate :unless => 'true == true'
        echo 'b'
      end
    end

    #noisy

    assert_trace("a\nb", pdef)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/functional/eft_10_cancel_process.rb
ruote-2.2.0 test/functional/eft_10_cancel_process.rb