forked from mikel/mail
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Multibyte::Chars#upcase/downcase
- Loading branch information
1 parent
348c170
commit 94d3239
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
# encoding: utf-8 | |||
require 'spec_helper' | |||
|
|||
describe "multibyte/chars" do | |||
Chars = Mail::Multibyte::Chars | |||
|
|||
it "should upcase" do | |||
chars = Chars.new('Laurent, où sont les tests ?') | |||
chars.upcase.should == "LAURENT, OÙ SONT LES TESTS ?" | |||
end | |||
|
|||
it "should downcase" do | |||
chars = Chars.new('VĚDA A VÝZKUM') | |||
chars.downcase.should == "věda a výzkum" | |||
end | |||
end | |||
|