Sha256: 38f77c2a5aed315ed939cd18b8840b8d02bdb898918c961d51e97da1ef450d1c

Contents?: true

Size: 313 Bytes

Versions: 20

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spout-1.0.0 lib/spout/tests/form_name_uniqueness.rb
spout-1.0.0.beta3 lib/spout/tests/form_name_uniqueness.rb
spout-1.0.0.beta2 lib/spout/tests/form_name_uniqueness.rb
spout-1.0.0.beta1 lib/spout/tests/form_name_uniqueness.rb
spout-0.14.1 lib/spout/tests/form_name_uniqueness.rb
spout-0.14.0 lib/spout/tests/form_name_uniqueness.rb
spout-0.14.0.rc lib/spout/tests/form_name_uniqueness.rb
spout-0.14.0.beta3 lib/spout/tests/form_name_uniqueness.rb
spout-0.14.0.beta2 lib/spout/tests/form_name_uniqueness.rb
spout-0.14.0.beta1 lib/spout/tests/form_name_uniqueness.rb
spout-0.13.0 lib/spout/tests/form_name_uniqueness.rb
spout-0.13.0.beta2 lib/spout/tests/form_name_uniqueness.rb
spout-0.13.0.beta1 lib/spout/tests/form_name_uniqueness.rb
spout-0.12.1 lib/spout/tests/form_name_uniqueness.rb
spout-0.12.0 lib/spout/tests/form_name_uniqueness.rb
spout-0.12.0.rc2 lib/spout/tests/form_name_uniqueness.rb
spout-0.12.0.rc lib/spout/tests/form_name_uniqueness.rb
spout-0.12.0.beta2 lib/spout/tests/form_name_uniqueness.rb
spout-0.12.0.beta1 lib/spout/tests/form_name_uniqueness.rb
spout-0.11.1 lib/spout/tests/form_name_uniqueness.rb