Sha256: 98df4edcdda9217a8f4d68756fe1d7a8363d145c45865d74ef177f0b24e0cff1

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestReporter < Test::Unit::TestCase

  def test_should_create_a_drb_object
    DRb.expects(:start_service)
    DRbObject.expects(:new).with(nil, "druby://host:port").returns(stub(:anything => true))

    Reporter.new('host', 'port').anything
  end

  def test_should_forward_unknown_methods_to_drb_object
    Reporter.any_instance.expects(:service).returns(mock(:something_fake => true))
    
    reporter = Reporter.new('host', 'port')
    reporter.something_fake
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
god-0.2.0 test/test_reporter.rb
god-0.3.0 test/test_reporter.rb
god-0.4.0 test/test_reporter.rb
god-0.4.1 test/test_reporter.rb
god-0.1.0 test/test_reporter.rb
god-0.4.3 test/test_reporter.rb