mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
store the slug as the title is, only sanitize the slug
and prettify code
This commit is contained in:
committed by
fantasticfears
parent
b772ff6e13
commit
a48dd1cc28
@@ -209,8 +209,8 @@ describe Category do
|
||||
end
|
||||
|
||||
it "creates a slug" do
|
||||
expect(@category.slug).to eq("%E6%B5%8B%E8%AF%95")
|
||||
expect(@category.slug_for_url).to eq("%E6%B5%8B%E8%AF%95")
|
||||
expect(@category.slug).to eq("测试")
|
||||
expect(@category.slug_for_url).to eq("测试")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user