Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.341 kB
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
Jump to Line
Something went wrong with that request. Please try again.