test/test_socket.rb in god-0.11.0 vs test/test_socket.rb in god-0.12.0
- old
+ new
@@ -1,10 +1,10 @@
require File.dirname(__FILE__) + '/helper'
class TestSocket < Test::Unit::TestCase
def setup
- silence_warnings do
+ silence_warnings do
Object.const_set(:DRb, stub_everything)
end
end
def test_should_start_a_drb_server
@@ -21,12 +21,12 @@
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