Sha256: b073d0be7258a70ce782e510ae6de6eeb4d3a7e7a7e6fe9246cfc46ae65627c1
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 15 08:42:08 JST 2007 # require 'test/unit' require 'openwfe/expressions/simplerep' # # testing definition.get_description # class DescriptionTest < Test::Unit::TestCase #def setup #end #def teardown #end DEF0 = """ class MyDef0 < OpenWFE::ProcessDefinition description 'not much to say' sequence do end end """ def test_0 rep = OpenWFE::SimpleExpRepresentation.from_code DEF0 assert_equal rep.get_description, "not much to say" end DEF1 = ''' <process-definition name="x" revision="y"> <description> just a tiny process </description> <participant ref="nada" /> </process-definition> '''.strip def test_1 rep = OpenWFE::SimpleExpRepresentation.from_s DEF1 assert_equal rep.get_description, "just a tiny process" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.16 | test/description_test.rb |