summaryrefslogtreecommitdiff
path: root/spec/ruby/core/encoding/converter/inspect_spec.rb
blob: 3170ee451f67b16e8fdc4a3a68ecaf501d63c9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../../../spec_helper'

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