require "spec_helper"

describe FirstClickFree do
  describe "#permitted_domains" do
    subject { described_class.permitted_domains }
    it { should have_at_least(10).items }
    it { subject.select { |domain| domain =~ /google/ }.length.should eq subject.length }
  end
end
require "spec_helper"

describe FirstClickFree do
  describe "#permitted_domains" do
    subject { described_class.permitted_domains }
    it { should have_at_least(10).items }
    it { subject.select { |domain| domain =~ /google|bing|yahoo/ }.length.should eq subject.length }
  end
end
Update spec to check for all search providers listed in domains.yml, not just google
Update spec to check for all search providers listed in domains.yml, not just google
