Sha256: 35eaee00f5f576053932154418ac271e82a3104a6ea2e904b008c1704a68e383

Contents?: true

Size: 596 Bytes

Versions: 21

Compression:

Stored size: 596 Bytes

Contents

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

## Canada
class CATest < Phonie::TestCase

  def test_local
    parse_test('+1 416 856 3348', '1', '416', '8563348', 'Canada')
  end

  def test_long_with_default_country_code
    Phonie.configuration.default_country_code = '1'
    parse_test('9059735100', '1', '905', '9735100', 'Canada')
  end

  def test_short_with_default_country_code_and_area_code
    Phonie.configuration.default_country_code = '1'
    Phonie.configuration.default_area_code = '416'
    parse_test('9735100', '1', '416', '9735100', 'Canada')
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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