Sha256: f4c977d64df257d0c918d3fb3aec6be24a6b1746906ed346e93b3c0e3f2224c9

Contents?: true

Size: 430 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
ibandit-0.11.6 spec/ibandit/structure_spec.rb
ibandit-0.11.5 spec/ibandit/structure_spec.rb