Sha256: 2ad67d291e986ddeedd41f481d24f3f4051a8e3dc357e1283aae949e19fb83bc

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

#
# testing ruote
#
# Thu Jul  9 13:31:59 JST 2009
#

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


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

  def test_false

    pdef = Ruote.process_definition :name => 'test' do
      sequence do

        equals :field_value => 'missing', :other_value => 'nada'
        echo '${f:__result__}'
        equals :variable_value => 'missing', :other_value => 'nada'
        echo '${f:__result__}'

        equals :value => 'missing', :other_value => 'nada'
        echo '${f:__result__}'
        equals :val => 'missing', :other_val => 'nada'
        echo '${f:__result__}'
      end
    end

    #noisy

    assert_trace(%w[ false ] * 4, pdef)
  end

  def test_true

    pdef = Ruote.process_definition :name => 'test' do
      sequence do

        equals :value => 'nada', :other_value => 'nada'
        echo '${f:__result__}'

        set 'v:nada' => 'nada'
        equals :variable_value => 'nada', :other_value => 'nada'
        echo '${f:__result__}'
      end
    end

    #noisy

    assert_trace(%w[ true ] * 2, pdef)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/functional/eft_17_equals.rb
ruote-2.2.0 test/functional/eft_17_equals.rb
ruote-2.1.11 test/functional/eft_17_equals.rb
ruote-2.1.10 test/functional/eft_17_equals.rb
ruote-2.1.9 test/functional/eft_17_equals.rb
ruote-2.1.8 test/functional/eft_17_equals.rb