mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
Add spec to unicode upcase and downcase
This commit is contained in:
parent
3e6ae45a93
commit
344f7629cd
@ -187,6 +187,14 @@ describe TextCleaner do
|
||||
expect(TextCleaner.clean_title("Hello there ?")).to eq("Hello there?")
|
||||
end
|
||||
|
||||
it "replaces all upper case unicode text with regular unicode case letters" do
|
||||
expect(TextCleaner.clean_title("INVESTIGAÇÃO POLÍTICA NA CÂMARA")).to eq("Investigação política na câmara")
|
||||
end
|
||||
|
||||
it "capitalizes first unicode letter" do
|
||||
expect(TextCleaner.clean_title("épico encontro")).to eq("Épico encontro")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user