diff options
Diffstat (limited to 'spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb')
-rw-r--r-- | spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb b/spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb index 740cd17e30..780d81c1ee 100644 --- a/spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb +++ b/spec/ruby/core/encoding/undefined_conversion_error/error_char_spec.rb @@ -1,29 +1,27 @@ require_relative '../fixtures/classes' -with_feature :encoding do - describe "Encoding::UndefinedConversionError#error_char" do - before :each do - @exception = EncodingSpecs::UndefinedConversionError.exception - @exception2 = EncodingSpecs::UndefinedConversionErrorIndirect.exception - end +describe "Encoding::UndefinedConversionError#error_char" do + before :each do + @exception = EncodingSpecs::UndefinedConversionError.exception + @exception2 = EncodingSpecs::UndefinedConversionErrorIndirect.exception + end - it "returns a String" do - @exception.error_char.should be_an_instance_of(String) - @exception2.error_char.should be_an_instance_of(String) - end + it "returns a String" do + @exception.error_char.should be_an_instance_of(String) + @exception2.error_char.should be_an_instance_of(String) + end - it "returns the one-character String that caused the exception" do - @exception.error_char.size.should == 1 - @exception.error_char.should == "\u{8765}" + it "returns the one-character String that caused the exception" do + @exception.error_char.size.should == 1 + @exception.error_char.should == "\u{8765}" - @exception2.error_char.size.should == 1 - @exception2.error_char.should == "\u{A0}" - end + @exception2.error_char.size.should == 1 + @exception2.error_char.should == "\u{A0}" + end - it "uses the source encoding" do - @exception.error_char.encoding.should == @exception.source_encoding + it "uses the source encoding" do + @exception.error_char.encoding.should == @exception.source_encoding - @exception2.error_char.encoding.should == @exception2.source_encoding - end + @exception2.error_char.encoding.should == @exception2.source_encoding end end |