Sha256: 03ee914b669c0458c2efc5347cfc29663e5a4043e703bf40369700a74a465889
Contents?: true
Size: 235 Bytes
Versions: 81
Compression:
Stored size: 235 Bytes
Contents
describe "Enumerable#collect" do class Test include Enumerable def each(&block) [1, 2, 3].each(&block) end end it "breaks out with the proper value" do Test.new.collect { break 42 }.should == 42 end end
Version data entries
81 entries across 81 versions & 3 rubygems