Sha256: 92a2c0a55ebe15caafd0d3334e70d1801c003a77aa548c20a5862dec38021dad

Contents?: true

Size: 360 Bytes

Versions: 9

Compression:

Stored size: 360 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestAddressCA < Test::Unit::TestCase
  def test_province
    assert_match /[ a-z]/, Faker::AddressCA.province
  end

  def test_province_abbr
    assert_match /[A-Z][A-Z]/, Faker::AddressCA.province_abbr
  end

  def test_postal_code
    assert_match /[A-Z]\d[A-Z]\W\d[A-Z]\d/, Faker::AddressCA.postal_code
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ffaker-1.31.0 test/test_address_ca.rb
ffaker-1.30.0 test/test_address_ca.rb
ffaker-1.25.0 test/test_address_ca.rb
ffaker-1.24.0 test/test_address_ca.rb
ffakerer-1.0.2 test/test_address_ca.rb
ffaker-1.23.0 test/test_address_ca.rb
ffakerer-1.0.1 test/test_address_ca.rb
ffaker-1.22.1 test/test_address_ca.rb
ffaker-1.22.0 test/test_address_ca.rb