1 require File.dirname(__FILE__) + '/helper'
3 class TestReporter < Test::Unit::TestCase
5 def test_should_create_a_drb_object
6 DRb.expects(:start_service)
7 DRbObject.expects(:new).with(nil, "druby://host:port").returns(stub(:anything => true))
9 Reporter.new('host', 'port').anything
12 def test_should_forward_unknown_methods_to_drb_object
13 Reporter.any_instance.expects(:service).returns(mock(:something_fake => true))
15 reporter = Reporter.new('host', 'port')
16 reporter.something_fake