Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Faker::Auto features to Faker::Vehicle #1260

Merged
merged 15 commits into from
Jun 1, 2018

Conversation

mrstebo
Copy link
Contributor

@mrstebo mrstebo commented May 29, 2018

This is in reference to PR #692.

Some tests were missing from the original work, so I have added those in 👍

def test_year
year = @tester.year
assert year >= 1981
assert year <= ::Time.now.year
Copy link
Member

@vbrazo vbrazo May 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1981 works but I think we should use 2005 instead. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that sounds much better. Considering the range for the year method starts with 2005 😅

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vbrazo vbrazo merged commit d5a3dd3 into faker-ruby:master Jun 1, 2018
@vbrazo vbrazo self-requested a review July 19, 2018 01:23
@vbrazo vbrazo mentioned this pull request Aug 13, 2018
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* add automotive data

* allow for area and subscriber codes in canadian phone numbers

* numberize phone number parts

* improve auto data to always have correct makes and models pairs

* fix Faker::Auto specs

* fix Faker::Auto.model when called without make

* use rand_in_range method

* Added locales file for Auto data.

* Fixed issues in the Auto.model due to fetch not being able to fetch a hash.
Fixed by creating a key that contains a random make.

* Moved Faker::Auto features into Faker::Vehicle.

* Updated documentation for Faker::Vehicle.

* Added missing tests.

* Fixed Rubocop offences.

* Updated the assertion so it matches the minimum range that the year method uses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants