Sha256: 665ca499e54bc983aded01f414c4a775cd019fe86f9a98eb19a0b9cc4f612492

Contents?: true

Size: 763 Bytes

Versions: 1

Compression:

Stored size: 763 Bytes

Contents

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

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

include OpenWFE



class FlowTest21 < 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.4 test/ft_21_cron.rb