Sha256: 8ea40ebbc60162ef17326e2057b55f66b7e925b7fd9d22194f2dda00a3408090

Contents?: true

Size: 329 Bytes

Versions: 34

Compression:

Stored size: 329 Bytes

Contents

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

34 entries across 34 versions & 1 rubygems

Version Path
spout-0.11.0 lib/spout/tests/form_name_match.rb
spout-0.11.0.rc lib/spout/tests/form_name_match.rb
spout-0.11.0.beta3 lib/spout/tests/form_name_match.rb
spout-0.11.0.beta2 lib/spout/tests/form_name_match.rb
spout-0.11.0.beta1 lib/spout/tests/form_name_match.rb
spout-0.10.2 lib/spout/tests/form_name_match.rb
spout-0.10.1 lib/spout/tests/form_name_match.rb
spout-0.10.0 lib/spout/tests/form_name_match.rb
spout-0.10.0.rc3 lib/spout/tests/form_name_match.rb
spout-0.10.0.rc2 lib/spout/tests/form_name_match.rb
spout-0.10.0.rc lib/spout/tests/form_name_match.rb
spout-0.10.0.beta10 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta9 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta8 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta7 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta6 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta4 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta3 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta2 lib/spout/tests/form_name_match.rb
spout-0.10.0.beta1 lib/spout/tests/form_name_match.rb