extending AR tests to run in JRuby and jdbc

Definitely! Please post a ticket with the patch on Lighthouse.

The 'if JRUBY' conditional isn't needed: just add jdbcmysql to the
adapter list in the Rakefile and a
test/connections/native_jdbcmysql.rb with the connection setup.

jeremy

> I've got a patch to the AR tests that support running them in JRuby.

...

> Is this something the core team would be interested in seeing in the codebase?

Definitely! Please post a ticket with the patch on Lighthouse.

The 'if JRUBY' conditional isn't needed: just add jdbcmysql to the
adapter list in the Rakefile and a
test/connections/native_jdbcmysql.rb with the connection setup.

Here's a initial patch that supports running AR tests in JRuby for mysql, postgresql, sqlite3 and the Java databases: h2, hsqldb and derby.

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1685-add-ar-test-connections-for-jdbc-via-jruby

http://rails.lighthouseapp.com/projects/8994/tickets/1685-adding-ar-test-connections-for-jdbc-via-jruby

I've got two +1s from Nick Sieger and Tom Enebo (core JRuby developers) for this patch. Is there anybody else on the core mailing list who is interested in taking a look at he patch?