Sha256: f1489d6f84c05c9dc1cf3cf1fbaff51d7d195cd26b068b55d2ac385ff825a077
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 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, encoding: "utf-8"))["id"] rescue nil end) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spout-1.0.0 | lib/spout/tests/form_name_match.rb |
spout-1.0.0.beta3 | lib/spout/tests/form_name_match.rb |
spout-1.0.0.beta2 | lib/spout/tests/form_name_match.rb |