diff options
Diffstat (limited to 'spec/ruby/core/exception')
-rw-r--r-- | spec/ruby/core/exception/destination_encoding_name_spec.rb | 23 | ||||
-rw-r--r-- | spec/ruby/core/exception/destination_encoding_spec.rb | 23 | ||||
-rw-r--r-- | spec/ruby/core/exception/error_bytes_spec.rb | 12 | ||||
-rw-r--r-- | spec/ruby/core/exception/error_char_spec.rb | 12 | ||||
-rw-r--r-- | spec/ruby/core/exception/initialize_spec.rb | 1 | ||||
-rw-r--r-- | spec/ruby/core/exception/readagain_bytes_spec.rb | 12 | ||||
-rw-r--r-- | spec/ruby/core/exception/source_encoding_name_spec.rb | 23 | ||||
-rw-r--r-- | spec/ruby/core/exception/source_encoding_spec.rb | 23 |
8 files changed, 0 insertions, 129 deletions
diff --git a/spec/ruby/core/exception/destination_encoding_name_spec.rb b/spec/ruby/core/exception/destination_encoding_name_spec.rb deleted file mode 100644 index a9e6474974..0000000000 --- a/spec/ruby/core/exception/destination_encoding_name_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::UndefinedConversionError#destination_encoding_name" do - it "returns the destination encoding name" do - ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") - begin - ec.convert("\xa0") - rescue Encoding::UndefinedConversionError => e - e.destination_encoding_name.should == "EUC-JP" - end - end -end - -describe "Encoding::InvalidByteSequenceError#destination_encoding_name" do - it "returns the destination encoding name" do - ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1") - begin - ec.convert("\xa0") - rescue Encoding::InvalidByteSequenceError => e - e.destination_encoding_name.should == "UTF-8" - end - end -end diff --git a/spec/ruby/core/exception/destination_encoding_spec.rb b/spec/ruby/core/exception/destination_encoding_spec.rb deleted file mode 100644 index 5709c31e55..0000000000 --- a/spec/ruby/core/exception/destination_encoding_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::UndefinedConversionError#destination_encoding" do - it "returns the destination encoding" do - ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") - begin - ec.convert("\xa0") - rescue Encoding::UndefinedConversionError => e - e.destination_encoding.should == Encoding::EUC_JP - end - end -end - -describe "Encoding::InvalidByteSequenceError#destination_encoding" do - it "returns the destination encoding" do - ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1") - begin - ec.convert("\xa0") - rescue Encoding::InvalidByteSequenceError => e - e.destination_encoding.should == Encoding::UTF_8 - end - end -end diff --git a/spec/ruby/core/exception/error_bytes_spec.rb b/spec/ruby/core/exception/error_bytes_spec.rb deleted file mode 100644 index 66dd4b62c1..0000000000 --- a/spec/ruby/core/exception/error_bytes_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::InvalidByteSequenceError#error_bytes" do - it "returns the error bytes" do - ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1") - begin - ec.convert("\xa0") - rescue Encoding::InvalidByteSequenceError => e - e.error_bytes.should == "\xA0".force_encoding("ASCII-8BIT") - end - end -end diff --git a/spec/ruby/core/exception/error_char_spec.rb b/spec/ruby/core/exception/error_char_spec.rb deleted file mode 100644 index f95ae2a6ce..0000000000 --- a/spec/ruby/core/exception/error_char_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::UndefinedConversionError#error_char" do - it "returns the error char" do - ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") - begin - ec.convert("\xa0") - rescue Encoding::UndefinedConversionError => e - e.error_char.should == "\u00A0" - end - end -end diff --git a/spec/ruby/core/exception/initialize_spec.rb b/spec/ruby/core/exception/initialize_spec.rb deleted file mode 100644 index e724feaa39..0000000000 --- a/spec/ruby/core/exception/initialize_spec.rb +++ /dev/null @@ -1 +0,0 @@ -require_relative '../../spec_helper' diff --git a/spec/ruby/core/exception/readagain_bytes_spec.rb b/spec/ruby/core/exception/readagain_bytes_spec.rb deleted file mode 100644 index 0f1e24f1cf..0000000000 --- a/spec/ruby/core/exception/readagain_bytes_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::InvalidByteSequenceError#readagain_bytes" do - it "returns the next byte" do - begin - "abc\xa4def".encode("ISO-8859-1", "EUC-JP") - rescue Encoding::InvalidByteSequenceError => e - e.error_bytes.should == "\xA4".force_encoding("ASCII-8BIT") - e.readagain_bytes.should == 'd' - end - end -end diff --git a/spec/ruby/core/exception/source_encoding_name_spec.rb b/spec/ruby/core/exception/source_encoding_name_spec.rb deleted file mode 100644 index 6f5dbd01aa..0000000000 --- a/spec/ruby/core/exception/source_encoding_name_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::UndefinedConversionError#source_encoding_name" do - it "returns the source encoding name" do - ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") - begin - ec.convert("\xa0") - rescue Encoding::UndefinedConversionError => e - e.source_encoding_name.should == "UTF-8" - end - end -end - -describe "Encoding::InvalidByteSequenceError#source_encoding_name" do - it "returns the source encoding name" do - ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1") - begin - ec.convert("\xa0") - rescue Encoding::InvalidByteSequenceError => e - e.source_encoding_name.should == "EUC-JP" - end - end -end diff --git a/spec/ruby/core/exception/source_encoding_spec.rb b/spec/ruby/core/exception/source_encoding_spec.rb deleted file mode 100644 index fac38e75f4..0000000000 --- a/spec/ruby/core/exception/source_encoding_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative '../../spec_helper' - -describe "Encoding::UndefinedConversionError#source_encoding" do - it "returns the source encoding" do - ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") - begin - ec.convert("\xa0") - rescue Encoding::UndefinedConversionError => e - e.source_encoding.should == Encoding::UTF_8 - end - end -end - -describe "Encoding::InvalidByteSequenceError#source_encoding" do - it "returns the source encoding" do - ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1") - begin - ec.convert("\xa0") - rescue Encoding::InvalidByteSequenceError => e - e.source_encoding.should == Encoding::EUC_JP - end - end -end |