Sha256: 4e36f1ddff85b9848afaec0e0ca6feb2e335d462b62ba251dc529b09f3b32112

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 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/participants/storeparticipants'

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

        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
ruote-0.9.18 test/ft_35_localdefs.rb