Skip to content

Commit

Permalink
Fix typo (#2968)
Browse files Browse the repository at this point in the history
* Fix typo

* Fix rubocop
  • Loading branch information
fynsta authored Jun 19, 2024
1 parent 5fcfe54 commit 37a7ea2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/default/vehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Available since version 1.6.4.
Faker::Vehicle.vin #=> "LLDWXZLG77VK2LUUF"

# Random vehicle manufacturer
Faker::Vehicle.manufacture #=> "Lamborghini"
Faker::Vehicle.manufacturer #=> "Lamborghini"

Faker::Vehicle.make #=> "Honda"

Expand Down
7 changes: 4 additions & 3 deletions lib/faker/default/vehicle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ def vin
# @return [String]
#
# @example
# Faker::Vehicle.manufacture #=> "Lamborghini"
# Faker::Vehicle.manufacturer #=> "Lamborghini"
#
# @faker.version 1.6.4
def manufacture
fetch('vehicle.manufacture')
def manufacturer
fetch('vehicle.manufacturer')
end
alias manufacture manufacturer

##
# Produces a random vehicle make.
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en/vehicle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
en:
faker:
vehicle:
manufacture:
manufacturer:
- Abarth
- Acura
- Aixam
Expand Down
4 changes: 2 additions & 2 deletions test/faker/default/test_faker_vehicle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_vin
end
end

def test_manufacture
assert_match WORD_MATCH, @tester.manufacture
def test_manufacturer
assert_match WORD_MATCH, @tester.manufacturer
end

def test_color
Expand Down

0 comments on commit 37a7ea2

Please sign in to comment.