1 require File.dirname(__FILE__) + '/helper'
3 class TestServer < Test::Unit::TestCase
6 Object.const_set(:DRb, stub_everything)
10 def test_should_start_a_drb_server
11 DRb.expects(:start_service)
15 def test_should_use_supplied_port_and_host
16 DRb.expects(:start_service).with { |uri, object| uri == "druby://host:port" && object.is_a?(Server) }
17 server = Server.new(nil, 'host', 'port')
20 def test_should_forward_foreign_method_calls_to_meddle
21 server = Server.new(mock(:something_random => true))
22 server.something_random