Skip to content

Commit

Permalink
Fix update brazilian phone country code (#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Pacheco committed Mar 30, 2021
1 parent b6b920a commit 08cd44c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/locales/pt-BR.yml
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions test/test_pt_br_locale.rb
Expand Up @@ -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})$/)
Expand Down

0 comments on commit 08cd44c

Please sign in to comment.