Skip to content

Commit

Permalink
Fix Faker::Color.color_name for Japanese (#2329)
Browse files Browse the repository at this point in the history
* Fix `Faker::Color.color_name` for Japanese

* Add assertion of `Faker::Color.color_name` for Japanese
  • Loading branch information
yujideveloper committed May 21, 2021
1 parent 3f78cb1 commit c4c8a94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/locales/ja/color.yml
@@ -1,4 +1,4 @@
ja:
faker:
color:
name: ["赤", "緑", "青", "黄", "紫", "ミントグリーン", "ティール", "白", "黒", "オレンジ", "ピンク", "灰色", "栗色", "バイオレット", "ターコイズブルー", "タン", "空色", "サーモン", "プラム", "オーキッド", "オリーブ", "マゼンタ", "ライム", "アイボリー", "藍色", "金", "フクシア", "シアン", "紺碧", "ラベンダー", "銀"]
name: ["赤", "緑", "青", "黄", "紫", "ミントグリーン", "ティール", "白", "黒", "オレンジ", "ピンク", "灰色", "栗色", "バイオレット", "ターコイズブルー", "タン", "空色", "サーモン", "プラム", "オーキッド", "オリーブ", "マゼンタ", "ライム", "アイボリー", "藍色", "金", "フクシア", "シアン", "紺碧", "ラベンダー", "銀"]
1 change: 1 addition & 0 deletions test/test_ja_locale.rb
Expand Up @@ -42,6 +42,7 @@ def test_ja_cat_methods

def test_ja_color_methods
assert Faker::Color.color_name.is_a? String
assert_not_english(Faker::Color.color_name)
end

def test_ja_book_methods
Expand Down

0 comments on commit c4c8a94

Please sign in to comment.