Skip to content

Commit

Permalink
Revert "add brazil license plate from mercosul rules (faker-ruby#2144)"
Browse files Browse the repository at this point in the history
This reverts commit 2f33dbe.
  • Loading branch information
droznyk committed Oct 23, 2020
1 parent 9da99ae commit 7c75edc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ pt-BR:
measurement_sizes: ["Pitada", "1/4", "1/3", "1/2", "1", "2", "3"]

vehicle:
license_plate: ['???-####', '???#?##', '???##?#']
license_plate: '???-####'
license_plate_by_state:
AC: ["MZ[N-Z]-####", "NA[A-G]-####", "NX[R-T]-####", "OVG-####", "OXP-####", "QL[U-Z]-####"]
AL: ["MU?-####", "MV[A-K]-####", "NL[V-Z]-####", "NM[A-O]-####", "OH[B-K]-####", "OR[D-M]-####", "OXN-####", "QL[A-M]-####"]
Expand Down
2 changes: 1 addition & 1 deletion test/test_pt_br_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_pt_br_university_methods

def test_pt_br_vehicle_methods
assert Faker::Vehicle.license_plate.is_a? String
assert Faker::Vehicle.license_plate.match(/(^[A-Z]{3}\-[0-9]{4})|([A-Z]{3}[0-9]{1}[A-Z][0-9]{2})|([A-Z]{3}[0-9]{2}[A-Z][0-9])/)
assert Faker::Vehicle.license_plate.match(/^[A-Z]{3}\-[0-9]{4}/)

assert Faker::Vehicle.license_plate(state_abbreviation: 'RJ').is_a? String
assert Faker::Vehicle.license_plate(state_abbreviation: 'RJ').match(/^[A-Z]{3}\-[0-9]{4}/)
Expand Down

0 comments on commit 7c75edc

Please sign in to comment.