# # 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 = ''' just a tiny process '''.strip def test_1 rep = OpenWFE::SimpleExpRepresentation.from_s DEF1 assert_equal rep.get_description, "just a tiny process" end end