Sha256: 7286e10695cd0f1fd1c7f0aae547ea616896ed6ff85229e8ee64ba70c69944d0

Contents?: true

Size: 319 Bytes

Versions: 7

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Spout
  module Tests
    module DomainNameUniqueness
      def test_domain_name_uniqueness
        files = Dir.glob("domains/**/*.json").collect{|file| file.split('/').last.downcase }
        assert_equal [], files.select{ |f| files.count(f) > 1 }.uniq
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spout-0.12.1 lib/spout/tests/domain_name_uniqueness.rb
spout-0.12.0 lib/spout/tests/domain_name_uniqueness.rb
spout-0.12.0.rc2 lib/spout/tests/domain_name_uniqueness.rb
spout-0.12.0.rc lib/spout/tests/domain_name_uniqueness.rb
spout-0.12.0.beta2 lib/spout/tests/domain_name_uniqueness.rb
spout-0.12.0.beta1 lib/spout/tests/domain_name_uniqueness.rb
spout-0.11.1 lib/spout/tests/domain_name_uniqueness.rb