|
Revision 6588, 461 bytes
(checked in by drry, 5 years ago)
|
|
lang/ruby/chokan/branches/citrus/spec/utils_spec.rb: added a spec for String#unindent.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/usr/bin/env ruby |
|---|
| 2 | require File.dirname(__FILE__) + '/spec_helper.rb' |
|---|
| 3 | |
|---|
| 4 | include Citrus |
|---|
| 5 | include Net::IRC |
|---|
| 6 | include Constants |
|---|
| 7 | |
|---|
| 8 | describe String do |
|---|
| 9 | it "should define utility method for encoding" do |
|---|
| 10 | "".to_u8.should == "" |
|---|
| 11 | "".to_u16.should == "" |
|---|
| 12 | "".to_euc.should == "" |
|---|
| 13 | "".to_jis.should == "" |
|---|
| 14 | "".to_sjis.should == "" |
|---|
| 15 | end |
|---|
| 16 | |
|---|
| 17 | it "should define utility method for encoding" do |
|---|
| 18 | <<-EOS.unindent.should == "one\n\ttwo\none\n" |
|---|
| 19 | one |
|---|
| 20 | two |
|---|
| 21 | one |
|---|
| 22 | EOS |
|---|
| 23 | end |
|---|
| 24 | end |
|---|
| 25 | |
|---|