You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
339 B

require 'spec_helper'
__END__
describe Dnsbl do
include_context "data"
it "queries correctly" do
Dnsbl.query('does-not-exist-domain-1234567890.net') == nil
end
it "distinguishes bad domains from good ones" do
Dnsbl.include?('place4porn.net').should == true
Dnsbl.include?('entrydns.net').should == false
end
end