Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/phonelib_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
['01114552586', 'US'], ['01148209679', 'CA'],
['000000000000000', 'CN'], ['0050016323', 'KR']
]
test_cases.each_with_index do |test_case, i|
test_cases.each do |test_case|
number, country = test_case
phone = Phonelib.parse number, country
expect(phone.valid_for_country?(country)).to be false
Expand Down Expand Up @@ -1478,7 +1478,7 @@
it 'are valid' do
data_file = File.dirname(__FILE__) + '/../data/phone_data.dat'
phone_data = Marshal.load(File.binread(data_file))
phone_data.each do |key, data|
phone_data.each_value do |data|
country = data[:id]
next unless country =~ /[A-Z]{2}/
data[:types].each do |type, type_data|
Expand Down