Sha256: 7c47f73f618358ecef221574d7e03b50fff0856e3e2b55510c3fcd35869f2029

Contents?: true

Size: 150 Bytes

Versions: 81

Compression:

Stored size: 150 Bytes

Contents

describe "Enumerable#each_with_index" do
  it "breaks out with the proper value" do
    [1, 2, 3].each_with_index { break 42 }.should == 42
  end
end

Version data entries

81 entries across 81 versions & 3 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.8.2 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.8.1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.8.0 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.8.0.beta1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.4 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.8.0.alpha1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.3 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.2 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.0 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.7.0.rc1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.6.1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.6.0 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.6.0.rc1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.6.0.alpha1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.5.1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.5.0 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.5.0.rc1 spec/opal/core/enumerable/each_with_index_break_spec.rb
opal-1.4.1 spec/opal/core/enumerable/each_with_index_break_spec.rb