Sha256: f9209c1df905210176a454a627501263372488538b4e59a8d9aadbcb44828975

Contents?: true

Size: 603 Bytes

Versions: 8

Compression:

Stored size: 603 Bytes

Contents

#
# testing ruote
#
# Tue Jun 23 10:55:16 JST 2009
#

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


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

  def test_launch

    pdef = Ruote.process_definition do
      alpha
    end

    fields = nil

    @engine.register_participant :alpha do |workitem|
      fields = workitem.fields
      @tracer << 'a'
      nil
    end

    #noisy

    wfid = @engine.launch(pdef, 'a' => 0, 'b' => 1)
    wait_for(wfid)

    assert_equal('a', @tracer.to_s)
    assert_equal({"a"=>0, "b"=>1, "params"=>{"ref"=>"alpha"}}, fields)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruote-2.1.8 test/functional/ft_12_launchitem.rb
ruote-2.1.7 test/functional/ft_12_launchitem.rb
ruote-2.1.6 test/functional/ft_12_launchitem.rb
ruote-2.1.5 test/functional/ft_12_launchitem.rb
ruote-2.1.4 test/functional/ft_12_launchitem.rb
ruote-2.1.3 test/functional/ft_12_launchitem.rb
ruote-2.1.2 test/functional/ft_12_launchitem.rb
ruote-2.1.1 test/functional/ft_12_launchitem.rb