Sha256: 6bdff3074bfe5474bb0e757761fbb44422363f071221bcb10dff9691ce59456b
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
# # Testing Ruote (OpenWFEru) # # 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(pdef, %w[ false ] * 4) 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(pdef, %w[ true ] * 2) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.1.3 | test/functional/eft_17_equals.rb |
ruote-2.1.2 | test/functional/eft_17_equals.rb |
ruote-2.1.1 | test/functional/eft_17_equals.rb |