mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Generate ASCII slug with default locale
This commit is contained in:
@ -46,6 +46,12 @@ describe Slug do
|
||||
it "fallbacks to empty string if it's too long" do
|
||||
expect(Slug.for(very_long_string)).to eq(default_slug)
|
||||
end
|
||||
|
||||
it "transliterates with the default locale" do
|
||||
SiteSetting.default_locale = :de
|
||||
I18n.locale = :en
|
||||
expect(Slug.for('löwe')).to eq('loewe')
|
||||
end
|
||||
end
|
||||
|
||||
context 'encoded generator' do
|
||||
|
Reference in New Issue
Block a user