Sha256: 71df0028e491365f28f9494238e8a9eeee5755f5060c10ddbef28cc4001808a7
Contents?: true
Size: 360 Bytes
Versions: 7
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
7 entries across 7 versions & 1 rubygems