Sha256: 05cec64d8a242b32bde0f4806d2f5c0e19ad18ab22f4a20111b0851da5ae5fe6

Contents?: true

Size: 360 Bytes

Versions: 10

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Spout
  module Tests
    module FormNameMatch
      Dir.glob("forms/**/*.json").each do |file|
        define_method("test_form_name_match: "+file) do
          assert_equal file.gsub(/^.*\//, "").gsub(".json", "").downcase, (begin JSON.parse(File.read(file))["id"] rescue nil end)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spout-1.0.0.beta1 lib/spout/tests/form_name_match.rb
spout-0.14.1 lib/spout/tests/form_name_match.rb
spout-0.14.0 lib/spout/tests/form_name_match.rb
spout-0.14.0.rc lib/spout/tests/form_name_match.rb
spout-0.14.0.beta3 lib/spout/tests/form_name_match.rb
spout-0.14.0.beta2 lib/spout/tests/form_name_match.rb
spout-0.14.0.beta1 lib/spout/tests/form_name_match.rb
spout-0.13.0 lib/spout/tests/form_name_match.rb
spout-0.13.0.beta2 lib/spout/tests/form_name_match.rb
spout-0.13.0.beta1 lib/spout/tests/form_name_match.rb