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 only japanese word spec #1750

Merged
merged 2 commits into from
Sep 19, 2019
Merged

Conversation

4geru
Copy link
Contributor

@4geru 4geru commented Sep 17, 2019

there expect translate in Japanese.
Japanese use only Kana words without alphabets.
but there is no any test. so I add test.

@@ -12,8 +12,8 @@ ja:
- "#{city_prefix}#{Name.last_name}#{city_suffix}"
- "#{Name.last_name}#{city_suffix}"
street_name:
- "#{Name.first_name}#{street_suffix}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jpananese address not have street_suffix in first_name and street_suffix.

assert Faker::Name.name_with_middle.is_a? String
assert Faker::Name.female_first_name.is_a? String
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is not written original Japanese I18n.

Copy link
Member

@bpleslie bpleslie left a comment

Choose a reason for hiding this comment

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

Thanks for fixing these! I wonder if there's a custom matcher we could create assert_not_english or something 🤔

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 👍

@vbrazo vbrazo merged commit 19d15d6 into faker-ruby:master Sep 19, 2019
michebble pushed a commit to michebble/faker that referenced this pull request Feb 16, 2020
* add only japanese word spec

* add assert_not_english method
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* add only japanese word spec

* add assert_not_english method
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.

3 participants