Skip to content

Commit 37a7ea2

Browse files
authored
Fix typo (#2968)
* Fix typo * Fix rubocop
1 parent 5fcfe54 commit 37a7ea2

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

doc/default/vehicle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Available since version 1.6.4.
66
Faker::Vehicle.vin #=> "LLDWXZLG77VK2LUUF"
77

88
# Random vehicle manufacturer
9-
Faker::Vehicle.manufacture #=> "Lamborghini"
9+
Faker::Vehicle.manufacturer #=> "Lamborghini"
1010

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

lib/faker/default/vehicle.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ def vin
4848
# @return [String]
4949
#
5050
# @example
51-
# Faker::Vehicle.manufacture #=> "Lamborghini"
51+
# Faker::Vehicle.manufacturer #=> "Lamborghini"
5252
#
5353
# @faker.version 1.6.4
54-
def manufacture
55-
fetch('vehicle.manufacture')
54+
def manufacturer
55+
fetch('vehicle.manufacturer')
5656
end
57+
alias manufacture manufacturer
5758

5859
##
5960
# Produces a random vehicle make.

lib/locales/en/vehicle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
en:
22
faker:
33
vehicle:
4-
manufacture:
4+
manufacturer:
55
- Abarth
66
- Acura
77
- Aixam

test/faker/default/test_faker_vehicle.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def test_vin
2020
end
2121
end
2222

23-
def test_manufacture
24-
assert_match WORD_MATCH, @tester.manufacture
23+
def test_manufacturer
24+
assert_match WORD_MATCH, @tester.manufacturer
2525
end
2626

2727
def test_color

0 commit comments

Comments
 (0)