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

Version Path
arachni-1.2.1 spec/arachni/ruby/io_spec.rb
arachni-1.2 spec/arachni/ruby/io_spec.rb
arachni-1.1 spec/arachni/ruby/io_spec.rb
arachni-1.0.6 spec/arachni/ruby/io_spec.rb
arachni-1.0.5 spec/arachni/ruby/io_spec.rb
arachni-1.0.4 spec/arachni/ruby/io_spec.rb
arachni-1.0.3 spec/arachni/ruby/io_spec.rb
arachni-1.0.2 spec/arachni/ruby/io_spec.rb
arachni-1.0.1 spec/arachni/ruby/io_spec.rb
arachni-1.0 spec/arachni/ruby/io_spec.rb
arachni-0.4.7 spec/arachni/ruby/io_spec.rb
arachni-0.4.6 spec/arachni/ruby/io_spec.rb
arachni-0.4.5.2 spec/arachni/ruby/io_spec.rb
arachni-0.4.5.1 spec/arachni/ruby/io_spec.rb
arachni-0.4.5 spec/arachni/ruby/io_spec.rb
arachni-0.4.4 spec/arachni/ruby/io_spec.rb
arachni-0.4.3.2 spec/arachni/ruby/io_spec.rb
arachni-0.4.3.1 spec/arachni/ruby/io_spec.rb
arachni-0.4.3 spec/arachni/ruby/io_spec.rb