Sha256: e42614c6633f068cf0c26bc0f67fc03eb75c10d58bfeab5acc5fec27bc2030df

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 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_city
    assert Faker::AddressCA::CITY.include?(Faker::AddressCA.city)
  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

5 entries across 5 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_address_ca.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_address_ca.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_address_ca.rb
ffaker-1.32.1 test/test_address_ca.rb
ffaker-1.32.0 test/test_address_ca.rb