fix process#alive? to not raise on no such file
[god.git] / test / test_reporter.rb
blob7bd8266aa0dce5b4edf9e656d252162262e689f7
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
10   end
12   def test_should_forward_unknown_methods_to_drb_object
13     Reporter.any_instance.expects(:service).returns(mock(:something_fake => true))
14     
15     reporter = Reporter.new('host', 'port')
16     reporter.something_fake
17   end
18 end