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

Version Path
opal-0.10.6 spec/opal/core/numeric/step_spec.rb
opal-0.10.6.beta spec/opal/core/numeric/step_spec.rb
opal-0.10.5 spec/opal/core/numeric/step_spec.rb
opal-0.10.4 spec/opal/core/numeric/step_spec.rb
opal-0.11.0.rc1 spec/opal/core/numeric/step_spec.rb
opal-0.10.3 spec/opal/core/numeric/step_spec.rb
opal-0.10.2 spec/opal/core/numeric/step_spec.rb
opal-0.10.1 spec/opal/core/numeric/step_spec.rb
opal-0.10.0 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.rc2 spec/opal/core/numeric/step_spec.rb
opal-0.9.4 spec/opal/core/numeric/step_spec.rb
opal-0.9.3 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.rc1 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.beta5 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.beta4 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.beta3 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.beta2 spec/opal/core/numeric/step_spec.rb
opal-0.10.0.beta1 spec/opal/core/numeric/step_spec.rb
opal-0.9.2 spec/opal/core/numeric/step_spec.rb
opal-0.9.0 spec/opal/core/numeric/step_spec.rb