andreasronge/neo4j — pull request #121 by dnagir (2012-01-11 02:50:08+00:00)
Title: Support multiple editions by tagging specs, use community ed by default

This PR will allow to:

- run all specs by default as usually.
- run specs for particular edition only (eliminates recursive [dependency on neo4j-advanced](https://github.com/dnagir/neo4j-advanced/commit/4b74c53b1621b74176ddd4fe2f76bfd5a01cb2ab#commitcomment-855199) and makes it easier to maintain). Use `EDITION` or `ED` environment variable. For example `ED=advanced b/rspec`.
- Will allow running specs for different editions on the TravisCI

*Issues*:

- Bundler re-executes the process losing environment variable. So we need to use `bundle install --binstubs=b`. (NOTE the `b/` dir is used in order not to mess up the executables, better ways?).
- Due to [JRuby bug](http://jira.codehaus.org/browse/JRUBY-6324?focusedCommentId=287686) it is necessary to add `srand` to the binstubs manually if the `pollAndGetClass' error is raise. Better way?
- 3 specs are failing related to ActiveModel and validations. Don't see why (Maybe breaking changes between Rspec 2.6 and 2.8).

Another thing is that we need to lazily require `neo4j-advanced` or `neo4j-enterprise` when it's necessary instead of just `neo4j-jars` (`neo4j-jars` is same as `neo4j-community` as of `1.6.0.alpha.3`).
But that's another topic.