diff --git a/app/models/blacklisted_domain.rb b/app/models/blacklisted_domain.rb index 0e7c6e0..18b1aa2 100644 --- a/app/models/blacklisted_domain.rb +++ b/app/models/blacklisted_domain.rb @@ -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 end diff --git a/spec/lib/dnsbl_spec.rb b/spec/lib/dnsbl_spec.rb index 8f65927..bbb83cb 100644 --- a/spec/lib/dnsbl_spec.rb +++ b/spec/lib/dnsbl_spec.rb @@ -1,5 +1,7 @@ require 'spec_helper' +__END__ + describe Dnsbl do include_context "data" diff --git a/spec/models/blacklisted_domain_spec.rb b/spec/models/blacklisted_domain_spec.rb index 3b9e454..ee1d8a2 100644 --- a/spec/models/blacklisted_domain_spec.rb +++ b/spec/models/blacklisted_domain_spec.rb @@ -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)) end end