Sha256: e6c6870157f5af1b933f451f0ad422ecf5c9c4eef0b1221d85f5beb59b46675c
Contents?: true
Size: 231 Bytes
Versions: 48
Compression:
Stored size: 231 Bytes
Contents
describe "Numeric#step" do before :each do ScratchPad.record [] @prc = lambda { |x| ScratchPad << x } end it "defaults to step = 1" do 1.step(5, &@prc) ScratchPad.recorded.should == [1, 2, 3, 4, 5] end end
Version data entries
48 entries across 48 versions & 3 rubygems