Sha256: 4fd964df4bf4bfd06f133e0ab3a9d12a5a3f3aedec84b07f350949a792409c18

Contents?: true

Size: 387 Bytes

Versions: 52

Compression:

Stored size: 387 Bytes

Contents

describe :enumeratorize, :shared => true do
  ruby_version_is '' ... '1.8.7' do
    it 'raises a LocalJumpError if no block given' do
      lambda{ [1,2].send(@method) }.should raise_error(LocalJumpError)
    end
  end
  ruby_version_is '1.8.7' do
    it 'returns an Enumerator if no block given' do
      [1,2].send(@method).should be_an_instance_of(enumerator_class)
    end
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/array/shared/enumeratorize.rb