diff --git a/lib/locales/en-CA.yml b/lib/locales/en-CA.yml index 6305abd905..937190ee9d 100644 --- a/lib/locales/en-CA.yml +++ b/lib/locales/en-CA.yml @@ -5,6 +5,7 @@ en-CA: state: [Alberta, British Columbia, Manitoba, New Brunswick, Newfoundland and Labrador, Nova Scotia, Northwest Territories, Nunavut, Ontario, Prince Edward Island, Quebec, Saskatchewan, Yukon] state_abbr: ["AB", "BC", "MB", "NB", "NL", "NS", "NU", "NT", "ON", "PE", "QC", "SK", "YT"] default_country: [Canada] + country_code: [CA] internet: free_email: [gmail.com, yahoo.ca, hotmail.com] diff --git a/test/test_en_ca_locale.rb b/test/test_en_ca_locale.rb index 8a399d4a6c..d034f5eb12 100644 --- a/test/test_en_ca_locale.rb +++ b/test/test_en_ca_locale.rb @@ -18,6 +18,7 @@ def test_en_ca_address_methods assert Faker::Address.state_abbr.is_a? String assert Faker::Address.default_country.is_a? String assert_equal 'Canada', Faker::Address.default_country + assert_equal 'CA', Faker::Address.country_code expected = /[A-VX-Y][0-9][A-CEJ-NPR-TV-Z] ?[0-9][A-CEJ-NPR-TV-Z][0-9]/ assert_match(expected, Faker::Address.postcode)