Fix case where a theme slug is all non-latin characters

This commit is contained in:
Alex Sanford
2023-11-02 19:10:15 -03:00
parent bce3b48ac7
commit de4f65e69b
3 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ describe '#classify_slug' do
'12-slug' => :D_12Slug,
'slug.s' => :SlugS,
'slug yolo $' => :SlugYolo,
'slug $ ab.cd/12' => :SlugAbCd12
'slug $ ab.cd/12' => :SlugAbCd12,
'カスタムテーマ' => :HexSlug_e382abe382b9e382bfe383a0e38386e383bce3839e
}.each do |slug, expected_symbol|
context "when #{slug}" do
it "returns #{expected_symbol}" do