Sha256: 46f54df4f7c8dbfc8a68ac92a2c1ed035284802a6b21aeff5d6b70108740ebed
Contents?: true
Size: 854 Bytes
Versions: 1
Compression:
Stored size: 854 Bytes
Contents
# # testing ruote # # Sat Sep 25 23:24:16 JST 2010 # require File.join(File.dirname(__FILE__), 'base') class FtLaunchSingleTest < Test::Unit::TestCase include FunctionalBase def test_no_name_singles_are_rejected assert_raise ArgumentError do @engine.launch_single(Ruote.process_definition do wait '2y' echo 'over.' end) end end def test_launch_single pdef = Ruote.process_definition 'unique_process' do wait '2y' echo 'over.' end wfid = @engine.launch_single(pdef) assert_equal( wfid, @engine.storage.get('variables', 'singles')['h']['unique_process'].first) sleep 0.700 assert_not_nil @engine.process(wfid) wfid1 = @engine.launch_single(pdef) sleep 0.700 assert_equal wfid, wfid1 assert_equal 1, @engine.processes.size end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.1.11 | test/functional/ft_46_launch_single.rb |