test/test_dnssd_flags.rb in dnssd-1.2 vs test/test_dnssd_flags.rb in dnssd-1.3

- old
+ new

@@ -63,24 +63,10 @@ end def test_complement new_flags = ~@flags - expected = DNSSD::Flags.new(DNSSD::Flags::Add, - DNSSD::Flags::AllowRemoteQuery, - DNSSD::Flags::BrowseDomains, - DNSSD::Flags::Default, - DNSSD::Flags::Force, - DNSSD::Flags::ForceMulticast, - DNSSD::Flags::LongLivedQuery, - DNSSD::Flags::MoreComing, - DNSSD::Flags::NoAutoRename, - DNSSD::Flags::RegistrationDomains, - DNSSD::Flags::ReturnIntermediates, - DNSSD::Flags::Shared, - DNSSD::Flags::Unique) - - assert_equal expected, new_flags + assert_equal DNSSD::Flags.new(*DNSSD::Flags::ALL_FLAGS), new_flags end def test_equals assert_equal @flags, DNSSD::Flags.new refute_equal @flags, DNSSD::Flags.new(DNSSD::Flags::Add)