Sha256: 1112698cce36775ffd3c9af65766370d6e7ba049e8ac47807473aedbfe8ae3b8
Contents?: true
Size: 709 Bytes
Versions: 19
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' require 'tempfile' describe IO do describe '#tail' do it 'returns the specified amount of lines from the bottom of an IO stream' do Tempfile.open( 'w' ) do |f| f.write <<-EOSTR Test Test2 Test3 Test4 Test5 EOSTR f.flush f.tail( 4 ).should == [ ' Test2', ' Test3', ' Test4', ' Test5' ] end end end end
Version data entries
19 entries across 19 versions & 1 rubygems