Sha256: 94e1caf9a04ffeecfcb7c32aa5e7248536232fa8e48636cd259023003b510381
Contents?: true
Size: 335 Bytes
Versions: 7
Compression:
Stored size: 335 Bytes
Contents
# -*- encoding: utf-8 -*- describe :stringio_length, :shared => true do it "returns the length of the wrapped string" do StringIO.new("example").send(@method).should == 7 end with_feature :encoding do it "returns the number of bytes" do StringIO.new("ありがとう").send(@method).should == 15 end end end
Version data entries
7 entries across 7 versions & 1 rubygems