Sha256: 3bc8720fd1ea85c9fb67117751d8df4ff03fccb65c2a4ee3414257b847a2c3d9
Contents?: true
Size: 532 Bytes
Versions: 7
Compression:
Stored size: 532 Bytes
Contents
require 'stringio' require File.expand_path('../shared/readchar', __FILE__) ruby_version_is "1.8.7" do describe "StringIO#readbyte" do it_behaves_like :stringio_readchar, :readbyte it "reads the next 8-bit byte from self's current position" do io = StringIO.new("example") io.send(@method).should == 101 io.pos = 4 io.send(@method).should == 112 end end describe "StringIO#readbyte when self is not readable" do it_behaves_like :stringio_readchar_not_readable, :readbyte end end
Version data entries
7 entries across 7 versions & 1 rubygems