# # testing ruote-couch # # Fri Dec 11 22:06:25 JST 2009 # require File.join(File.dirname(__FILE__), '..', 'test_helper.rb') require 'ruote/engine' require 'ruote/worker' require File.join(File.dirname(__FILE__), '..', 'integration_connection.rb') class FtInitialTest < Test::Unit::TestCase def test_echo #require 'ruote/storage/hash_storage' #storage = Ruote::HashStorage.new #require 'ruote/storage/fs_storage' #storage = Ruote::FsStorage.new('work') storage = new_storage(nil) engine = Ruote::Engine.new(Ruote::Worker.new(storage)) engine.context[:noisy] = true pdef = Ruote.process_definition :name => 'test' do echo '* SEEN *' end wfid = engine.launch(pdef) engine.wait_for(wfid) #storage.purge! end end