Sha256: 7d13e8b2a66bae70b19293e8bb7695a4d54df6a6ac35c7ff89690a376514735e

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/expressions/raw_prog'
require 'openwfe/participants/csvparticipant'

include OpenWFE



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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    class TestDefinition0 < ProcessDefinition
        def make
            process_definition :name => "rs0", :revision => "0" do
                cron :tab => "* * * * *", :name => "cron" do
                    participant :cron_event
                end
            end
        end
    end

    def test_0

        @engine.register_participant(:cron_event) do
            @tracer << "cron_event"
        end

        dotest(TestDefinition0, "", 62)
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.5 test/ft_21_cron.rb