Sha256: 80491376603eeee2cbfa143e11b0bd052f2b95f13b0f5436d5596f3d85ae960a
Contents?: true
Size: 764 Bytes
Versions: 52
Compression:
Stored size: 764 Bytes
Contents
require File.expand_path('../../fixtures/classes', __FILE__) with_feature :encoding do describe "Encoding::InvalidByteSequenceError#destination_encoding" do before(:each) do @exception, = EncodingSpecs::InvalidByteSequenceError.exception @exception2, = EncodingSpecs::InvalidByteSequenceErrorIndirect.exception end it "returns an Encoding object" do @exception.destination_encoding.should be_an_instance_of(Encoding) @exception2.destination_encoding.should be_an_instance_of(Encoding) end it "is equal to the destination encoding of the object that raised it" do @exception.destination_encoding.should == Encoding::ISO_8859_1 @exception2.destination_encoding.should == Encoding::UTF_8 end end end
Version data entries
52 entries across 52 versions & 2 rubygems