Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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