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

Allow Faker::Address.zip_code to have leading zero #1274

Merged

Conversation

igor-starostenko
Copy link

Fixing a bug with Faker::Address.zip_code never generates a zip code that starts with zero (for example New Jersey)

@vbrazo vbrazo self-requested a review June 4, 2018 13:48
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.

Looks good. Thanks for contributing 👍

@vbrazo vbrazo merged commit 5cb15b8 into faker-ruby:master Jun 24, 2018
zip_codes = []
1000.times { zip_codes << @tester.zip_code }
assert zip_codes.any? { |zip_code| zip_code[0].to_i.zero? }
end
Copy link
Member

Choose a reason for hiding this comment

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

👍

@vbrazo vbrazo self-requested a review July 19, 2018 01:36
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* test zip code can start from zero

* allow zip code to have leading zero

* git ignore Ctags tags

* ensure zip_code does letterify

* fixed flaky test for Faker::Markdown.sandwich

* Update CHANGELOG.md
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.

2 participants