Sha256: 786f880a8b289789761d34540b54bfc710adf7006022d133cfc3694e7388e470
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
require 'helper' class TestDnsblClient < Test::Unit::TestCase should "return no hits for 127.0.0.255" do c = DNSBL::Client.new res = c.lookup("127.0.0.255") assert_equal(0,res.length) end should "return all lists for 127.0.0.2" do c = DNSBL::Client.new res = c.lookup("127.0.0.2") assert(res.length >= c.dnsbls.length) end should "return results for bad domains" do c = DNSBL::Client.new res = c.lookup("pfizer.viagra.aqybasej.gurdoctor.com") assert(res.length >= 0) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dnsbl-client-0.2.4 | test/test_dnsbl-client.rb |
dnsbl-client-0.2.3 | test/test_dnsbl-client.rb |
dnsbl-client-0.2.1 | test/test_dnsbl-client.rb |
dnsbl-client-0.2.0 | test/test_dnsbl-client.rb |