test/registry_test.rb in ruby_skynet-0.4.0 vs test/registry_test.rb in ruby_skynet-0.5.0
- old
+ new
@@ -87,10 +87,10 @@
['192.168.10.0', 2 ],
['192.5.10.0', 1 ],
['10.0.11.0', 0 ],
].each do |test|
should "handle score #{test[1]}" do
- RubySkynet::Common.stubs(:local_ip_address).returns("192.168.11.0")
+ RubySkynet.stubs(:local_ip_address).returns("192.168.11.0")
assert_equal test[1], RubySkynet::Registry.score_for_server(test[0]), "Local: #{RubySkynet::Common.local_ip_address} Server: #{test[0]} Score: #{test[1]}"
end
end
end
\ No newline at end of file