Sha256: 6e4ffc9b980056ab1e24950b1ea4118b2f78968cbc99f0f74616456e309e3f30
Contents?: true
Size: 786 Bytes
Versions: 5
Compression:
Stored size: 786 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestSocket < Minitest::Test def setup silence_warnings do Object.const_set(:DRb, stub_everything) end end def test_should_start_a_drb_server DRb.expects(:start_service) God::Socket.new end def test_should_use_supplied_port_and_host DRb.expects(:start_service).with { |uri, object| uri == "drbunix:///tmp/god.9999.sock" && object.is_a?(God::Socket) } server = God::Socket.new(9999) end def test_should_forward_foreign_method_calls_to_god server = nil server = God::Socket.new God.expects(:send).with(:something_random) server.something_random end # ping def test_ping_should_return_true server = nil server = God::Socket.new assert server.ping end end
Version data entries
5 entries across 5 versions & 3 rubygems
Version | Path |
---|---|
resurrected_god-0.14.0 | test/test_socket.rb |
mcproc-2016.2.20 | test/test_socket.rb |
god-0.13.7 | test/test_socket.rb |
god-0.13.6 | test/test_socket.rb |
god-0.13.5 | test/test_socket.rb |