Sha256: 43f6422832f73e00ba574a47a8ffbc686a4af67dab8eac711dc08b45962efc5e
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
# encoding: utf-8 require 'helper' class TestAddressCA < Test::Unit::TestCase def test_province assert_match(/\A[ a-z]+\z/i, FFaker::AddressCA.province) end def test_province_abbr assert_match(/\A[A-Z]{2}\z/, FFaker::AddressCA.province_abbr) end def test_city assert_include(FFaker::AddressCA::CITY, FFaker::AddressCA.city) end def test_postal_code assert_match( /\A[A-CEGHJK-NPR-TVXY]\d[A-CEGHJK-NPR-TV-Z] \d[A-CEGHJK-NPR-TV-Z]\d\z/, FFaker::AddressCA.postal_code) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.2.0 | test/test_address_ca.rb |
ffaker-2.1.0 | test/test_address_ca.rb |