Sha256: 9a0b03d582ecbe994cf2ea92582c89e0b3efed108b3680c72798db66130a32ee
Contents?: true
Size: 711 Bytes
Versions: 4
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true RSpec.describe 'Gman domains' do let(:resolve_domains?) { ENV['GMAN_RESOLVE_DOMAINS'] == 'true' } let(:importer) { Gman::Importer.new({}) } let(:options) { { skip_dupe: true, skip_resolve: !resolve_domains? } } Gman.list.to_h.each do |group, domains| next if ['non-us gov', 'non-us mil', 'US Federal'].include?(group) context "the #{group} group" do it 'only contains valid domains' do invalid_domains = [] Parallel.each(domains, in_threads: 4) do |domain| next if importer.valid_domain?(domain, options) invalid_domains.push domain end expect(invalid_domains).to be_empty end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gman-7.0.6 | spec/gman/domains_spec.rb |
gman-7.0.5 | spec/gman/domains_spec.rb |
gman-7.0.4 | spec/gman/domains_spec.rb |
gman-7.0.3 | spec/gman/domains_spec.rb |