Sha256: d18890897c2e2c2f97948828a472b4719f06e09fa6efc7c906e616d4a2ab385f
Contents?: true
Size: 767 Bytes
Versions: 24
Compression:
Stored size: 767 Bytes
Contents
require File.dirname(__FILE__) + "/../../test_helper" unit_tests do test "number_of_workers is determined by mirror server options" do workers = DeepTest::Distributed::TestServerWorkers.new( DeepTest::Options.new({}), {:number_of_workers => 4}, mock ) assert_equal 4, workers.number_of_workers end test "server is retrieved using client connection information" do workers = DeepTest::Distributed::TestServerWorkers.new( options = DeepTest::Options.new({}), {:number_of_workers => 4}, mock(:address => "address") ) DeepTest::Server.expects(:remote_reference). with("address", options.server_port). returns(:server_reference) assert_equal :server_reference, workers.server end end
Version data entries
24 entries across 24 versions & 4 rubygems