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