Sha256: 0cabd8a1e22025d25b199fd867f46611aaa5fd5e7c17e9508130d4341ba61def
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
require 'minitest/autorun' require 'dnssd' class TestDNSSDService < MiniTest::Unit::TestCase def test_class_get_property skip 'DNSSD::Service::get_property not defined' unless DNSSD::Service.respond_to? :get_property assert_kind_of Numeric, DNSSD::Service.get_property(DNSSD::Service::DaemonVersion) end def test_class_getaddrinfo service = DNSSD::Service.new addresses = [] service.getaddrinfo 'localhost' do |addrinfo| addresses << addrinfo.address break unless addrinfo.flags.more_coming? end assert addresses.index('127.0.0.1') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dnssd-2.0.1 | test/test_dnssd_service.rb |
dnssd-2.0 | test/test_dnssd_service.rb |