Sha256: f4f3b8727f91d7feba9caaf4868d29f781c3da587582d04b0e60d45b10db8ab7

Contents?: true

Size: 514 Bytes

Versions: 23

Compression:

Stored size: 514 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

## Mexico
class MXTest < Phonie::TestCase
  def test_local
    parse_test('+52 33 36159895',  '52', '33',  '36159895', 'Mexico', false)
    parse_test('+52 686 3615989',  '52', '686',  '3615989', 'Mexico', false)
  end

  def test_mobile
    # Mobile phones have extra 1 in front
    parse_test('+52 1 55 12345678', '52', '155', '12345678', 'Mexico', true)
    parse_test('+52 1 444 1234567', '52', '1444', '1234567', 'Mexico', true)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
phonie-3.3.1 test/countries/mx_test.rb
phonie-3.2.2 test/countries/mx_test.rb
phonie-3.2.1 test/countries/mx_test.rb
phonie-3.2.0 test/countries/mx_test.rb
phonie-3.1.15 test/countries/mx_test.rb
phonie-3.1.14 test/countries/mx_test.rb
phonie-3.1.13 test/countries/mx_test.rb
phonie-3.1.12 test/countries/mx_test.rb
phonie-3.1.11 test/countries/mx_test.rb
phonie-3.1.10 test/countries/mx_test.rb
phonie-3.1.9 test/countries/mx_test.rb
phonie-3.1.8 test/countries/mx_test.rb
phonie-3.1.7 test/countries/mx_test.rb
phonie-3.1.6 test/countries/mx_test.rb
phonie-3.1.5 test/countries/mx_test.rb
phonie-3.1.4 test/countries/mx_test.rb
phonie-3.1.3 test/countries/mx_test.rb
phonie-3.1.2 test/countries/mx_test.rb
phonie-3.1.1 test/countries/mx_test.rb
phonie-3.1.0 test/countries/mx_test.rb