Sha256: b1098b54adef273a36f6446a8f4a37c51d6bf9af0a670ba8aed4cf229484c34d
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Dec 10 18:02:59 JST 2007 # require 'test/unit' require 'openwfe/expool/expstorage' class Vehicle end class Car < Vehicle end class Animal end class StorageTest < Test::Unit::TestCase #def setup #end #def teardown #end def test_class_accepted esb = Object.new class << esb include OpenWFE::ExpressionStorageBase end assert (esb.class_accepted?(Vehicle.new, nil, nil)) assert (esb.class_accepted?(Vehicle.new, [ Vehicle ], nil)) assert (not esb.class_accepted?(Vehicle.new, nil, [ Vehicle ])) assert (esb.class_accepted?(Car.new, [ Vehicle ], nil)) assert (not esb.class_accepted?(Car.new, nil, [ Vehicle ])) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
openwferu-0.9.17 | test/storage_test.rb |
ruote-0.9.18 | test/storage_test.rb |