Sha256: e8aa1927003ed30fca76e3dcb0f446873ff4c1164e89dc700c5bcd2c9d4a3d4d

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

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

    #noisy

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.1.11 test/functional/eft_10_cancel_process.rb
ruote-2.1.10 test/functional/eft_10_cancel_process.rb
ruote-2.1.9 test/functional/eft_10_cancel_process.rb
ruote-2.1.8 test/functional/eft_10_cancel_process.rb