blob: 2f7f33e45ef9fa8f5ad52124413f8ec095970f87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require File.expand_path('../../fixtures/classes', __FILE__)
with_feature :encoding do
describe "Encoding::UndefinedConversionError#destination_encoding_name" do
before :each do
@exception = EncodingSpecs::UndefinedConversionError.exception
end
it "returns a String" do
@exception.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 == "US-ASCII"
end
end
end
|