Sha256: 5f15afecd0e3103ec4a0f5ec7706732fef1dcec4e3fed29b5b846e252cde06fa

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon May  5 09:28:28 JST 2008
#

require 'rubygems'

require 'flowtestbase'

require 'openwfe/def'


class FlowTest87 < Test::Unit::TestCase
  include FlowTestBase

  #def setup
  #end

  #def teardown
  #end

  #
  # TEST 0

  class Test0 < OpenWFE::ProcessDefinition

    sequence do
      sub0
      sub1
      sub2
      sub3
    end

    process_definition :name => "sub0" do
      _print "sub0"
    end
    define :name => "sub1" do
      _print "sub1"
    end
    process_definition "sub2" do
      _print "sub2"
    end
    define "sub3" do
      _print "sub3"
    end
  end

  def test_0

    dotest Test0, %w{ sub0 sub1 sub2 sub3 }.join("\n")
  end

  #
  # TEST 1

  class Test1 < OpenWFE::ProcessDefinition
    sequence do
      "bad 0"
      _print "ok"
      "bad 1"
      _print "over"
    end
  end

  def test_1

    dotest Test1, "ok\nover"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_87_define.rb