Sha256: 91200676822a539faf3f611e991a7b3d7978cc30c4f9e32e4fe37b96b83c9b84

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

#
# testing ruote
#
# Sun Jan  3 12:04:07 JST 2010
#
# Matt Nichols (http://github.com/mattnichols)
#

require File.join(File.dirname(__FILE__), %w[ .. test_helper.rb ])
require File.join(File.dirname(__FILE__), %w[ .. functional storage_helper.rb ])

require 'ruote'


class UtEngineTest < Test::Unit::TestCase

  def test_initialize_with_worker

    storage = determine_storage(
      's_logger' => [ 'ruote/log/test_logger', 'Ruote::TestLogger' ])
    worker = Ruote::Worker.new(storage)
    engine = Ruote::Engine.new(worker, false)
  end

  def test_initialize_with_worker_and_without_logger

    storage = determine_storage({})
    worker = Ruote::Worker.new(storage)
    engine = Ruote::Engine.new(worker, false)
  end

  def test_initialize_with_storage

    storage = determine_storage(
      's_logger' => [ 'ruote/log/test_logger', 'Ruote::TestLogger' ])

    engine = Ruote::Engine.new(storage)
  end

  def test_initialize_storage_without_logger

    storage = determine_storage({})
    engine = Ruote::Engine.new(storage)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/unit/ut_18_engine.rb
ruote-2.2.0 test/unit/ut_18_engine.rb
ruote-2.1.11 test/unit/ut_18_engine.rb
ruote-2.1.10 test/unit/ut_18_engine.rb
ruote-2.1.9 test/unit/ut_18_engine.rb
ruote-2.1.8 test/unit/ut_18_engine.rb
ruote-2.1.7 test/unit/ut_18_engine.rb
ruote-2.1.6 test/unit/ut_18_engine.rb
ruote-2.1.5 test/unit/ut_18_engine.rb
ruote-2.1.4 test/unit/ut_18_engine.rb
ruote-2.1.3 test/unit/ut_18_engine.rb