Sha256: b56c85b867145813dcb38de722c40d34d2701191cc91310a71063f444bf1fdfe

Contents?: true

Size: 1020 Bytes

Versions: 1

Compression:

Stored size: 1020 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct  9 22:19:44 JST 2006
#

require 'openwfe/def'
require 'openwfe/workitem'
require 'openwfe/worklist/storeparticipant'

require 'flowtestbase'


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

    #def teardown
    #end

    #def setup
    #    super
    #    @engine.ac[:remote_definitions_allowed] = true
    #end


    #
    # TEST 0

    def test_local_0

        #log_level_to_debug

        li = OpenWFE::LaunchItem.new
        li.wfdurl = "file:doc/res/defs/testdef.rb"

        dotest(
            li, 
            """a
b
c""")
    end


    #
    # TEST 1

    #def xxxx_local_1
    def test_local_1

        li = OpenWFE::LaunchItem.new
        li.wfdurl = "doc/res/defs/testdef.rb"

        dotest(
            li, 
            """a
b
c""")
    end


    #
    # TEST 2

    def test_local_2

        @engine.launch("file:doc/res/defs/testdef.rb")
        sleep 0.300
        assert_equal @tracer.to_s, "a\nb\nc"
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.17 test/ft_35_localdefs.rb