Sha256: 11f91d43c9da3d4be90ec761ed1277aef1bba05f4c7c477a212e51aeeb7300e4

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

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.18 test/ft_87_define.rb