Module: Spout::Tests::VariableNameUniqueness

Included in:
Spout::Tests
Defined in:
lib/spout/tests/variable_name_uniqueness.rb

Instance Method Summary collapse

Instance Method Details

#test_variable_name_uniquenessObject



6
7
8
9
# File 'lib/spout/tests/variable_name_uniqueness.rb', line 6

def test_variable_name_uniqueness
  files = Dir.glob("variables/**/*.json").collect { |file| file.split("/").last.downcase }
  assert_equal [], files.select { |f| files.count(f) > 1 }.uniq
end