test/ft_87_define.rb in ruote-0.9.18 vs test/ft_87_define.rb in ruote-0.9.19
- old
+ new
@@ -12,63 +12,63 @@
require 'openwfe/def'
class FlowTest87 < Test::Unit::TestCase
- include FlowTestBase
+ include FlowTestBase
- #def setup
- #end
+ #def setup
+ #end
- #def teardown
- #end
+ #def teardown
+ #end
- #
- # TEST 0
+ #
+ # TEST 0
- class Test0 < OpenWFE::ProcessDefinition
+ class Test0 < OpenWFE::ProcessDefinition
- sequence do
- sub0
- sub1
- sub2
- sub3
- end
+ sequence do
+ sub0
+ sub1
+ sub2
+ sub3
+ end
- process_definition :name => "sub0" do
- _print "sub0"
- end
- define :name => "sub1" do
- _print "sub1"
- end
- process_definition "sub2" do
- _print "sub2"
- end
- define "sub3" do
- _print "sub3"
- end
+ process_definition :name => "sub0" do
+ _print "sub0"
end
+ define :name => "sub1" do
+ _print "sub1"
+ end
+ process_definition "sub2" do
+ _print "sub2"
+ end
+ define "sub3" do
+ _print "sub3"
+ end
+ end
- def test_0
+ def test_0
- dotest Test0, %w{ sub0 sub1 sub2 sub3 }.join("\n")
- end
+ dotest Test0, %w{ sub0 sub1 sub2 sub3 }.join("\n")
+ end
- #
- # TEST 1
+ #
+ # TEST 1
- class Test1 < OpenWFE::ProcessDefinition
- sequence do
- "bad 0"
- _print "ok"
- "bad 1"
- _print "over"
- end
+ class Test1 < OpenWFE::ProcessDefinition
+ sequence do
+ "bad 0"
+ _print "ok"
+ "bad 1"
+ _print "over"
end
+ end
- def test_1
+ def test_1
- dotest Test1, "ok\nover"
- end
+ dotest Test1, "ok\nover"
+ end
end