Sha256: 340f7d52001b457f22bda06e4ed6458d04e9cf13a9d6ef564b193a06813b767a

Contents?: true

Size: 394 Bytes

Versions: 10

Compression:

Stored size: 394 Bytes

Contents

shared_examples_for :enumeratorize do |method|
  ruby_version_is '' ... '1.8.7' do
    it 'raises a LocalJumpError if no block given' do
      lambda{ Itr[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
      Itr[1,2].send(method).should be_an_instance_of(enumerator_class)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jactive_support-2.1.2 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-3.0.0 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-3.0.0.pre2 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-3.0.0.pre1 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-2.1.1 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-2.1.0 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-2.0.0 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-1.0.2 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-1.0.1-universal-java-1.6 spec/java_ext/iterable/shared/enumeratorize.rb
jactive_support-1.0.0-universal-java-1.6 spec/java_ext/iterable/shared/enumeratorize.rb