diff --git a/lib/locales/pt-BR.yml b/lib/locales/pt-BR.yml index 553cf7162a..055a3da7a4 100644 --- a/lib/locales/pt-BR.yml +++ b/lib/locales/pt-BR.yml @@ -653,6 +653,7 @@ pt-BR: - "#{Team.main_teams}" sport: ['handebol', 'basquete', 'futebol', 'UFC', 'volĂȘi', 'tĂȘnis'] + country_code: ['55'] phone_number: subscriber_number: ['####'] area_code: ["11", "12", "13", "14", "15", "16", "17", "18", "19", "21", "22", "24", "27", "28", "31", "32", "33", "34", "35", "37", "38", "41", "42", "43", "44", "45", "46", "47", "48", "49", "51", "53", "54", "55", "61", "62", "63", "64", "65", "66", "67", "68", "69", "71", "73", "74", "75", "77", "79", "81", "82", "83", "84", "85", "86", "87", "88", "89", "91", "92", "93", "94", "95", "96", "97", "98", "99"] diff --git a/test/test_pt_br_locale.rb b/test/test_pt_br_locale.rb index 6c999134c6..8f295ac490 100644 --- a/test/test_pt_br_locale.rb +++ b/test/test_pt_br_locale.rb @@ -36,6 +36,10 @@ def test_pt_br_address_methods assert Faker::Address.default_country, 'Brasil' end + def test_pt_br_phone_methods + assert_equal Faker::PhoneNumber.country_code, '+55' + end + def test_pt_br_color_methods assert Faker::Color.hex_color.is_a? String assert Faker::Color.hex_color.match(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)