Sha256: 57593c85459580f9bbd76d06b63882d199c3ed9003ae077f1e75fb77a37064de

Contents?: true

Size: 708 Bytes

Versions: 3

Compression:

Stored size: 708 Bytes

Contents

#
# Testing Ruote (OpenWFEru)
#
# 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(pdef, 'a')

    #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'
        cancel_process :unless => 'true == true'
        echo 'b'
      end
    end

    #noisy

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruote-2.1.3 test/functional/eft_10_cancel_process.rb
ruote-2.1.2 test/functional/eft_10_cancel_process.rb
ruote-2.1.1 test/functional/eft_10_cancel_process.rb