Fix #3639: Favorite count pixiv tags aren't skipped by translated tags.

This commit is contained in:
evazion
2018-04-13 22:39:52 -05:00
parent f2adbba241
commit 302994e5d9
3 changed files with 12 additions and 1 deletions

View File

@@ -228,6 +228,15 @@ module Sources
assert_equal([toosaka_rin], @site.translate_tag("遠坂凛"))
end
should "not translate '1000users入り' to '1'" do
FactoryBot.create(:tag, name: "1", post_count: 1)
source = get_source("https://www.pixiv.net/member_illust.php?mode=medium&illust_id=60665428")
tags = %w[Fate/GrandOrder グランブルーファンタジー 手袋 1000users入り]
assert_equal(tags.sort, source.tags.map(&:first).sort)
assert_equal(["fate/grand_order"], source.translated_tags.map(&:first))
end
end
end
end