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