Sha256: 707c710ca7dafe5fa33514180c52ff2a9c56f8fce36d9c8fe9185bc6a4e3b9c8

Contents?: true

Size: 569 Bytes

Versions: 24

Compression:

Stored size: 569 Bytes

Contents

require File.dirname(__FILE__) + "/../test_helper"

unit_tests do
  test "number_of_workers is determined by options" do
    workers = DeepTest::LocalWorkers.new(
      DeepTest::Options.new(:number_of_workers => 4)
    )

    assert_equal 4, workers.number_of_workers
  end

  test "load_files simply loads each file provided" do
    workers = DeepTest::LocalWorkers.new(
      DeepTest::Options.new(:number_of_workers => 4)
    )

    workers.expects(:load).with(:file_1)
    workers.expects(:load).with(:file_2)

    workers.load_files([:file_1, :file_2])
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
jason-o-matic-deep_test-1.2.2.1 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.10 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.11 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.12 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.13 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.14 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.2 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.3 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.4 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.5 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.6 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.7 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.8 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.9 test/deep_test/local_workers_test.rb
jperkins-deep_test-1.2.2 test/deep_test/local_workers_test.rb
jason-o-matic-deep_test-1.2.2.15 test/deep_test/local_workers_test.rb
jstorimer-deep-test-1.4.0 test/deep_test/local_workers_test.rb
jstorimer-deep-test-1.3.0 test/deep_test/local_workers_test.rb
jstorimer-deep-test-1.2.0 test/deep_test/local_workers_test.rb
jstorimer-deep-test-1.1.0 test/deep_test/local_workers_test.rb