diff options
Diffstat (limited to 'spec/rubyspec/core/encoding/converter/inspect_spec.rb')
-rw-r--r-- | spec/rubyspec/core/encoding/converter/inspect_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/rubyspec/core/encoding/converter/inspect_spec.rb b/spec/rubyspec/core/encoding/converter/inspect_spec.rb new file mode 100644 index 0000000000..b8216176cf --- /dev/null +++ b/spec/rubyspec/core/encoding/converter/inspect_spec.rb @@ -0,0 +1,13 @@ +require File.expand_path('../../../../spec_helper', __FILE__) + +describe "Encoding::Converter#inspect" do + it "includes the source and destination encodings in the return value" do + source = Encoding::UTF_8 + destination = Encoding::UTF_16LE + + output = "#<Encoding::Converter: #{source.name} to #{destination.name}>" + + x = Encoding::Converter.new(source, destination) + x.inspect.should == output + end +end |