summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/encoding/converter/inspect_spec.rb
blob: b8216176cfb24957d5b8ec869ea1c49b44febe27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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