On Wed, Dec 31, 2008 at 12:47 PM, Stephen Bannasch <[email protected]> wrote: > > I've got a patch to the AR tests that support running them in JRuby. > Right now the patch only works for mysql. > > A big part of the reason I'm working on this is to make it easier to > test JRuby itself. Charlie Nutter just fixed yesterday JRuby > regression that caused these tests to crash yesterday. If I can make > it easier to run these tests in JRuby we'll find and fix these > problems faster. > > Here's an example of a problem in JRuby I found: > > http://jira.codehaus.org/browse/JRUBY-3270 > > The problem was related to hpricot using a deprecated and then > deleted JRuby method that was part of it's implementation of fast_xs. > AS uses fast_xs if it is present ... > > http://jira.codehaus.org/browse/JRUBY-3272 > > I run the AR mysql jdbc tests like this: > > $ jruby -S rake test_jdbcmysql > > I've got the patch up here and a listing of what errors are occurring now: > > http://pastie.org/349823 > > Is anybody else working on something like this. > > I was planning to implement the same pattern for other d adapters > available via jdbc and then submit a patch to rails. > > 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. jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
