Sha256: 2d6e56b629082f22249407931fe1291519e1ad8cfe5dfa7270f461cfe57c8239

Contents?: true

Size: 180 Bytes

Versions: 21

Compression:

Stored size: 180 Bytes

Contents

describe "Array#each" do
  it "yields each element to the block" do
    a = []
    x = [1, 2, 3]
    x.each { |item| a << item }.should equal(x)
    a.should == [1, 2, 3]
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-0.3.39 spec/core/array/each_spec.rb
opal-0.3.38 spec/core/array/each_spec.rb
opal-0.3.37 spec/core/array/each_spec.rb
opal-0.3.36 spec/core/array/each_spec.rb
opal-0.3.35 spec/core/array/each_spec.rb
opal-0.3.34 spec/core/array/each_spec.rb
opal-0.3.33 spec/core/array/each_spec.rb
opal-0.3.32 spec/core/array/each_spec.rb
opal-0.3.31 spec/core/array/each_spec.rb
opal-0.3.30 spec/core/array/each_spec.rb
opal-0.3.29 spec/core/array/each_spec.rb
opal-0.3.28 spec/core/array/each_spec.rb
opal-0.3.27 spec/core/array/each_spec.rb
opal-0.3.26 spec/core/array/each_spec.rb
opal-0.3.25 spec/core/array/each_spec.rb
opal-0.3.22 spec/core/array/each_spec.rb
opal-0.3.21 test/core/array/each_spec.rb
opal-0.3.20 test/core/array/each_spec.rb
opal-0.3.19 test/core/array/each_spec.rb
opal-0.3.18 core/spec/core/array/each_spec.rb