test/ft_35_localdefs.rb in ruote-0.9.18 vs test/ft_35_localdefs.rb in ruote-0.9.19
- old
+ new
@@ -5,71 +5,73 @@
# John Mettraux at openwfe.org
#
# Mon Oct 9 22:19:44 JST 2006
#
+require 'rubygems'
+
require 'openwfe/def'
require 'openwfe/workitem'
require 'openwfe/participants/storeparticipants'
require 'flowtestbase'
class FlowTest35 < Test::Unit::TestCase
- include FlowTestBase
+ include FlowTestBase
- #def teardown
- #end
+ #def teardown
+ #end
- #def setup
- # super
- # @engine.ac[:remote_definitions_allowed] = true
- #end
+ #def setup
+ # super
+ # @engine.ac[:remote_definitions_allowed] = true
+ #end
- #
- # TEST 0
+ #
+ # TEST 0
- def test_local_0
+ def test_local_0
- #log_level_to_debug
+ #log_level_to_debug
- li = OpenWFE::LaunchItem.new
- li.wfdurl = "file:doc/res/defs/testdef.rb"
+ li = OpenWFE::LaunchItem.new
+ li.wfdurl = "file:doc/res/defs/testdef.rb"
- dotest(
- li,
- """a
+ dotest(
+ li,
+ """a
b
c""")
- end
+ end
- #
- # TEST 1
+ #
+ # TEST 1
- #def xxxx_local_1
- def test_local_1
+ #def xxxx_local_1
+ def test_local_1
- li = OpenWFE::LaunchItem.new
- li.wfdurl = "doc/res/defs/testdef.rb"
+ li = OpenWFE::LaunchItem.new
+ li.wfdurl = "doc/res/defs/testdef.rb"
- dotest(
- li,
- """a
+ dotest(
+ li,
+ """a
b
c""")
- end
+ end
- #
- # TEST 2
+ #
+ # TEST 2
- def test_local_2
+ def test_local_2
- launch "file:doc/res/defs/testdef.rb"
- sleep 0.300
- assert_equal @tracer.to_s, "a\nb\nc"
- end
+ launch "file:doc/res/defs/testdef.rb"
+ sleep 0.300
+ assert_equal @tracer.to_s, "a\nb\nc"
+ end
end