lib/faker/russian/inn.rb in faker-russian-0.0.4 vs lib/faker/russian/inn.rb in faker-russian-0.0.5
- old
+ new
@@ -3,10 +3,10 @@
module Inn
def inn(options = {})
options.assert_valid_keys(:sequence_number, :region_number, :kind)
sequence = find_sequence(options[:sequence_number])
- region_number = find_region_number(options[:region_number], sequence)
+ region_number = find_region_number(options[:region_number], sequence, :region_numbers)
kind = find_kind(options[:kind], sequence)
sequence_digits = find_digits(kind, sequence)
inn_without_check_digit = region_number + sequence_digits
inn_without_check_digit + check_digit(inn_without_check_digit)