diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 23:20:11 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 23:20:11 +0200 |
commit | 79671ec57e59091260a0bc3d40a31d31d9c72a94 (patch) | |
tree | 2f59a8727b8f63f9e79d50352fa4f78a7cc00234 /spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb | |
parent | 994833085ae06afbe94d30ab183d80e0234fbe14 (diff) |
Update to ruby/spec@7de852d
Diffstat (limited to 'spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb')
-rw-r--r-- | spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb b/spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb index 51c802f7e1..f5fa6f55e3 100644 --- a/spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb +++ b/spec/ruby/core/encoding/invalid_byte_sequence_error/destination_encoding_name_spec.rb @@ -1,20 +1,18 @@ require_relative '../fixtures/classes' -with_feature :encoding do - describe "Encoding::InvalidByteSequenceError#destination_encoding_name" do - before :each do - @exception, = EncodingSpecs::InvalidByteSequenceError.exception - @exception2, = EncodingSpecs::InvalidByteSequenceErrorIndirect.exception - end +describe "Encoding::InvalidByteSequenceError#destination_encoding_name" do + before :each do + @exception, = EncodingSpecs::InvalidByteSequenceError.exception + @exception2, = EncodingSpecs::InvalidByteSequenceErrorIndirect.exception + end - it "returns a String" do - @exception.destination_encoding_name.should be_an_instance_of(String) - @exception2.destination_encoding_name.should be_an_instance_of(String) - end + it "returns a String" do + @exception.destination_encoding_name.should be_an_instance_of(String) + @exception2.destination_encoding_name.should be_an_instance_of(String) + end - it "is equal to the destination encoding name of the object that raised it" do - @exception.destination_encoding_name.should == "ISO-8859-1" - @exception2.destination_encoding_name.should == "UTF-8" - end + it "is equal to the destination encoding name of the object that raised it" do + @exception.destination_encoding_name.should == "ISO-8859-1" + @exception2.destination_encoding_name.should == "UTF-8" end end |