Sha256: 7c8aa44b776e26697f3e2459f8159e50ecb8c65182e600f3cda1f829b6fc835f

Contents?: true

Size: 278 Bytes

Versions: 4

Compression:

Stored size: 278 Bytes

Contents

require 'stringio'

ruby_version_is "1.9.2" do
  describe "StringIO#external_encoding" do
    it "gets the encoding of the underlying String" do
      io = StringIO.new
      io.set_encoding Encoding::UTF_8
      io.external_encoding.should == Encoding::UTF_8
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-stringio-2.3 spec/external_encoding_spec.rb
rubysl-stringio-2.2 spec/external_encoding_spec.rb
rubysl-stringio-2.1 spec/external_encoding_spec.rb
rubysl-stringio-2.1.0 spec/external_encoding_spec.rb