@ -10,6 +10,6 @@ class BlacklistedDomain < ActiveRecord::Base
}
def self.include?(domain_name)
of(domain_name).exists? || Dnsbl.include?(domain_name)
of(domain_name).exists? # || Dnsbl.include?(domain_name)
end
@ -1,5 +1,7 @@
require 'spec_helper'
__END__
describe Dnsbl do
include_context "data"
@ -7,7 +7,7 @@ describe BlacklistedDomain do
blacklisted_domain
BlacklistedDomain.should include(blacklisted_domain.name)
BlacklistedDomain.should include("sub.#{blacklisted_domain.name}")
BlacklistedDomain.should include("place4porn.net")
# BlacklistedDomain.should include("place4porn.net")
BlacklistedDomain.should_not include(FactoryGirl.generate(:domain_name))