test/europe/vat/format_test.rb in europe-0.0.6 vs test/europe/vat/format_test.rb in europe-0.0.7

- old
+ new

@@ -7,13 +7,13 @@ include Benchmark VAT_FORMAT_VALIDATION = { AT: 'ATU99999999', BE: 'BE0999999999', - BG: %w(BG999999999 BG9999999999), + BG: %w[BG999999999 BG9999999999], CY: 'CY99999999L', - CZ: %w(CZ99999999 CZ999999999 CZ9999999999), + CZ: %w[CZ99999999 CZ999999999 CZ9999999999], DE: 'DE999999999', DK: 'DK99 99 99 99', EE: 'EE999999999', EL: 'EL999999999', ES: 'ESX9999999X', @@ -23,26 +23,26 @@ 'GBGD9996', 'GBHA9997', 'GB999 9999 99'], HR: 'HR99999999999', HU: 'HU99999999', - IE: %w(IE9S99999L IE9999999WI), + IE: %w[IE9S99999L IE9999999WI], IT: 'IT99999999999', - LT: %w(LT999999999 LT999999999999), + LT: %w[LT999999999 LT999999999999], LU: 'LU99999999', LV: 'LV99999999999', MT: 'MT99999999', - NL: %w(NL999999999B99 NL999.9999.99.B99), + NL: %w[NL999999999B99 NL999.9999.99.B99], PL: 'PL9999999999', PT: 'PT999999999', RO: 'RO999999999', SE: 'SE999999999999', SI: 'SI99999999', SK: 'SK9999999999' }.freeze def test_all_vat_numbers_on_format - VAT_FORMAT_VALIDATION.each do |_country, number| + VAT_FORMAT_VALIDATION.each_value do |number| if number.is_a?(Array) number.each do |num| check_vat_number(num) end else