Sha256: b0660aa6e32e7b6da5511a12e33792f9079f511586000550b963629f540c2bd3

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

#
# testing ruote
#
# Sat Jun 25 21:00:57 JST 2011
#

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


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

  def test_t_fields

    pdef = <<-EOS
define
  set 'v:x': alpha
  user_${v:x}
  user_${v:nada}
    EOS

    @engine.register /^user_/ do |wi|
      @tracer << wi.participant_name + "\n"
    end

    #@engine.noisy = true

    wfid = @engine.launch(pdef)
    @engine.wait_for(wfid)

    assert_equal %w[ user_alpha user_ ], @tracer.to_a
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-maestrodev-2.2.1 test/functional/ft_62_exp_name_and_dollar_substitution.rb