Module: Spout::Tests::DomainNameUniqueness
- Included in:
- Spout::Tests
- Defined in:
- lib/spout/tests/domain_name_uniqueness.rb
Instance Method Summary collapse
Instance Method Details
#test_domain_name_uniqueness ⇒ Object
6 7 8 9 |
# File 'lib/spout/tests/domain_name_uniqueness.rb', line 6 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 |