Sha256: 9a7cd60d80578c592310bfc6002daea18121f785adae3243308931b809dc0d1b
Contents?: true
Size: 430 Bytes
Versions: 18
Compression:
Stored size: 430 Bytes
Contents
require "spec_helper" describe "structures.yml" do FILE = File.expand_path("../../../data/structures.yml", __FILE__) STRUCTURES = YAML.load_file(FILE) STRUCTURES.each do |country, rules| context country do rules.each do |rule, value| next unless rule =~ /_format$/ it "builds #{rule} rule" do expect { Regexp.new(value) }.to_not raise_exception end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems