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