blob: c6e24732fdbd2a267ad931d2968664692af19df3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative '../fixtures/classes'
describe "Encoding::UndefinedConversionError#destination_encoding" do
before :each do
@exception = EncodingSpecs::UndefinedConversionError.exception
end
it "returns an Encoding object" do
@exception.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::US_ASCII
end
end
|