Sha256: 795f819b33556e001ded58c5f054377cd9634595de5f7cd4f9777d09ec1a13a5

Contents?: true

Size: 553 Bytes

Versions: 16

Compression:

Stored size: 553 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

module Larva
  class DaemonTest < Minitest::Test
    def test_workerpool_is_started
      processors = {foo: 'bar'}
      Configurator.stubs(:configure)
      WorkerPool.expects(:start).with(processors)
      Daemon.start(processors, logfile: "./log/foo.log", config_dir: config_dir)
    end

    def test_configurator_is_called
      options = {logfile: "./log/foo.log", config_dir: config_dir}
      Configurator.expects(:configure).with(options)
      Daemon.start({}, options)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
larva-1.3.0 test/daemon_test.rb
larva-1.2.0 test/daemon_test.rb
larva-1.1.3 test/daemon_test.rb
larva-1.1.2 test/daemon_test.rb
larva-1.1.1 test/daemon_test.rb
larva-1.1.0 test/daemon_test.rb
larva-1.0.1 test/daemon_test.rb
larva-1.0.0 test/daemon_test.rb
larva-0.9.2 test/daemon_test.rb
larva-0.9.1 test/daemon_test.rb
larva-0.9.0 test/daemon_test.rb
larva-0.8.0 test/daemon_test.rb
larva-0.7.3 test/daemon_test.rb
larva-0.7.2 test/daemon_test.rb
larva-0.7.1 test/daemon_test.rb
larva-0.7.0 test/daemon_test.rb