Sha256: ae93a9b4563649554d9a89527b4c8ae84fc2ba7af6e77467590e7ce6e770ebac
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# # Testing OpenWFEru # # John Mettraux at openwfe.org # require 'flowtestbase' require 'openwfe/expressions/raw_prog' require 'openwfe/participants/csvparticipant' include OpenWFE class FlowTest19 < Test::Unit::TestCase include FlowTestBase CSV0 = \ """ in:weather, in:month, out:take_umbrella? ,, raining, , yes sunny, , no cloudy, june, yes cloudy, may, yes cloudy, , no """ #def setup #end #def teardown #end # # Test 0 # class TestDefinition0 < ProcessDefinition def make process_definition :name => "test0", :revision => "0" do sequence do set :field => "weather", :value => "cloudy" set :field => "month", :value => "may" decision _print "${f:take_umbrella?}" end end end end def test_0 csvParticipant = CsvParticipant.new(CSV0) @engine.register_participant("decision", csvParticipant) dotest( TestDefinition0, "yes") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.5 | test/ft_19_csv.rb |