FIX: should allow non-ASCII slugs for category pages.

This commit is contained in:
Vinoth Kannan
2020-07-29 19:47:57 +05:30
parent 3116591dc6
commit 691edc16c9
2 changed files with 18 additions and 0 deletions

View File

@ -368,6 +368,19 @@ RSpec.describe ListController do
end
end
context 'with encoded slug in the category' do
let(:category) { Fabricate(:category, slug: "தமிழ்") }
before do
SiteSetting.slug_generation_method = "encoded"
end
it "succeeds" do
get "/c/#{category.slug}/#{category.id}/l/latest"
expect(response.status).to eq(200)
end
end
context 'with a link that has a parent slug, slug and id in its path' do
let(:child_category) { Fabricate(:category_with_definition, parent_category: category) }