Sha256: 91565cfe99628b8e24395e6a7427bc599922e05fd42a22660ae80056e24f5e91
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
# -*- encoding : utf-8 -*- require File.dirname(__FILE__) + '/../spec_helper' describe "Eye::Utils::Tail" do subject{ Eye::Utils::Tail.new(5) } it "should rotate" do subject << 1 subject << 2 subject << 3 subject.push 4 subject.should == [1,2,3,4] subject << 5 subject.should == [1,2,3,4,5] subject << 6 subject.should == [2,3,4,5,6] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eye-0.1.11 | spec/utils/tail_spec.rb |