Sha256: 576dda03f91d51066d6641be9a1ce3038dd26a5893cde238c80bcafa782dd147

Contents?: true

Size: 783 Bytes

Versions: 3

Compression:

Stored size: 783 Bytes

Contents

#
# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruote-couch-2.1.5 test/functional/ft_0_echo.rb
ruote-couch-2.1.4 test/functional/ft_0_echo.rb
ruote-couch-2.1.1 test/functional/ft_0_echo.rb