Skip to content
New issue

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

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

Already on GitHub? # 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.

@4geru 4geru force-pushed the add_only_japanese_spec branch from f6d2c11 to 5739c85 Compare September 17, 2019 13:33
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 🤔

@4geru 4geru force-pushed the add_only_japanese_spec branch from 47c76f2 to 4ef89ad Compare September 19, 2019 04:37
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants