Add spec to unicode upcase and downcase

This commit is contained in:
Rafael dos Santos Silva 2016-03-07 22:10:49 -03:00
parent 3e6ae45a93
commit 344f7629cd
1 changed files with 8 additions and 0 deletions

View File

@ -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