Sha256: a6cdf14d5233eafc8f6ae0d76a26e4ce401cb060c9b1c60333f61e9e223a1848
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 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 it "returns an Enumerator if no block given" do [1, 2].each.should be_kind_of(Enumerator) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.41 | spec/core/array/each_spec.rb |
opal-0.3.40 | spec/core/array/each_spec.rb |