Sha256: 1dc76a7e7bcb312cc29c12ab67b91ca0b26c13019595aa8876261edde3a1c83b
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::List do describe "#to_ary" do describe "on a really big list" do before do @list = Hamster.interval(0, 10000) end it "doesn't run out of stack space" do @list.to_ary end end describe "enables explicit conversion to" do before do @list = Hamster.list("A", "B", "C") end it "arrays" do array = *@list array.should == ["A", "B", "C"] end it "call parameters" do [@list].each do |a, b, c| a.should == "A" b.should == "B" c.should == "C" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.14 | spec/hamster/list/to_ary_spec.rb |