Sha256: 218a8afbaeff797f377435ebdf1a6fc6bb880ff3ea32f5e79b29dc1272645305

Contents?: true

Size: 625 Bytes

Versions: 5

Compression:

Stored size: 625 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Sun Oct 29 16:18:25 JST 2006
#

require 'test/unit'

require 'openwfe/engine/engine'
require 'openwfe/participants/participants'

#
# testing misc things
#

class ParticipantTest < Test::Unit::TestCase

    #def setup
    #end

    #def teardown
    #end

    def test_lookup_participant

        engine = OpenWFE::Engine.new
        engine.register_participant :toto, NullParticipant

        p = engine.get_participant "toto"
        assert_kind_of NullParticipant, p

        p = engine.get_participant :toto
        assert_kind_of NullParticipant, p
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openwferu-0.9.12 test/participant_test.rb
openwferu-0.9.12.863 test/participant_test.rb
openwferu-0.9.13 test/participant_test.rb
openwferu-0.9.14 test/participant_test.rb
openwferu-0.9.15 test/participant_test.rb