Browse Source

blacklisted domain test

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
6e22b75897
  1. 9
      spec/models/blacklisted_domain_spec.rb

9
spec/models/blacklisted_domain_spec.rb

@ -1,5 +1,12 @@
require 'spec_helper' require 'spec_helper'
describe BlacklistedDomain do describe BlacklistedDomain do
pending "add some examples to (or delete) #{__FILE__}" include_context "data"
it "includes blacklisted", focus: true do
blacklisted_domain
BlacklistedDomain.should include(blacklisted_domain.name)
BlacklistedDomain.should include("sub.#{blacklisted_domain.name}")
BlacklistedDomain.should_not include(FactoryGirl.generate(:domain_name))
end
end end

Loading…
Cancel
Save