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 Address.mailing_address method. Add tests for Faker::Address. Fix… #911

Closed
wants to merge 1 commit into from

Conversation

andrewmbyrd
Copy link
Contributor

Fixes #841
Add tests for Faker::Address. Fix bug with zip_code(state_abbreviation), nullifying need for one test in test_faker_zip_code.rb

Previously, en.yml did not contain a list of postcodes per state, so a call to Faker::Address.zip_code "TX" would fail, unless the Faker::Config.locale had been set to :"en-US". Rather than changing config in the function call, I added postcodes per state into en.yml. This change nullified the need for the last test in test_faker_zip_code.rb

… bg with zip_code(state_abbreviation), nullifying need for one test in test_faker_zip_code.rb
@stympy stympy closed this in c59602e Jul 12, 2017
@stympy
Copy link
Contributor

stympy commented Jul 12, 2017

I merged this without the mailing_address method because it was too similar to the already-existing methods.

landongrindheim pushed a commit to landongrindheim/faker that referenced this pull request Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants