andreasronge/neo4j — Issue #119: Enumerator is inconsistent on JRuby 1.6 and 1.7
Author: dnagir
Created: 2012-01-10 03:25:33+00:00
State: open

It is also possible to run it 1.7.dev currently, except

So we may periodically run specs against it to make it easier to transition.

Currently there's inconsistent behaviour on the Enumerator.

For example:
- JRuby 1.6.5.1: `Blog.first.posts.any? {|p| puts p.class} # Post`
- JRuby 1.7.dev: `Blog.first.posts.any? {|p| puts p.class, p.first.clas} # Array, Post`

As a result (I suppose) of this ~50-ish specs fail.

The fix I imagine is easy and is related to the Enumerator behaviour.

(However, it's possible that it's a JRuby issue, but I haven't been able to reproduce it outside neo4j.rb)