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

Version Path
ibandit-0.11.28 spec/ibandit/structure_spec.rb
ibandit-0.11.27 spec/ibandit/structure_spec.rb
ibandit-0.11.26 spec/ibandit/structure_spec.rb
ibandit-0.11.25 spec/ibandit/structure_spec.rb
ibandit-0.11.24 spec/ibandit/structure_spec.rb
ibandit-0.11.23 spec/ibandit/structure_spec.rb
ibandit-0.11.19 spec/ibandit/structure_spec.rb
ibandit-0.11.18 spec/ibandit/structure_spec.rb
ibandit-0.11.17 spec/ibandit/structure_spec.rb
ibandit-0.11.16 spec/ibandit/structure_spec.rb
ibandit-0.11.15 spec/ibandit/structure_spec.rb
ibandit-0.11.14 spec/ibandit/structure_spec.rb
ibandit-0.11.13 spec/ibandit/structure_spec.rb
ibandit-0.11.12 spec/ibandit/structure_spec.rb
ibandit-0.11.11 spec/ibandit/structure_spec.rb
ibandit-0.11.10 spec/ibandit/structure_spec.rb
ibandit-0.11.9 spec/ibandit/structure_spec.rb
ibandit-0.11.7 spec/ibandit/structure_spec.rb