Sha256: 6503856e0453e7d8e059d39b716021069b7a863a35c6b8129a6613b1e394f2c0
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true module Spout module Tests module VariableNameMatch Dir.glob("variables/**/*.json").each do |file| define_method("test_variable_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/variable_name_match.rb |
spout-1.0.0.beta3 | lib/spout/tests/variable_name_match.rb |
spout-1.0.0.beta2 | lib/spout/tests/variable_name_match.rb |