maybe my blog http://blog.mkristian.tk/2011/09/jruby-and-rubygems-and-javaclassloader.html gives you some ideas and some examples ;-)
- Kristian On Sun, Oct 2, 2011 at 8:53 PM, Stephen Bannasch <stephen.banna...@deanbrook.org> wrote: > Sorry if this is the wrong list to post this, but it is the only list I'm > subscribed to... I couldn't access the details or archive links here for the > users list: > > http://xircles.codehaus.org/projects/jruby/lists > > Unfortunately, I'm bound to a Grails application in my current job. I can't > find any great testing framework for Grails that will allow me to write > integration tests involving JavaScript. > > I've already written why I prefer Rails over Grails here (it is not a > complete reference, though - there's much more reasons, but I didn't have > time to finish it): > > http://rosenfeld.heroku.com/en/articles/programming/2011-08-07-why-i-prefer-rails-over-grails > > So, I'd like to integrate Capybara and Rspec to Grails: > > https://github.com/jnicklas/capybara > > So, I'd like to know what is the recommended way for including RubyGems > support while embedding JRuby. > > My initial thoughts was to create a Gemfile including Capybara and Rspec and > run "bundle install src/ruby/gems". Then,I would create my specs under > src/ruby/specs and would like to be able to run "require 'capybara-rspec'" > fromthere. > > I also hope to be able to use the classes defined in my Grails application > from inside the specs, like my GORM domain classes. > > What would be the recommended approach for achieving this goal? > > This example might be useful in your development: > https://github.com/concord-consortium/wise4-test > It does not include any integration with the Java webapp application but is > a good example of using RSpec2, Cucumber, and Capybara for testing a web app > that is not Rack/Rails-based. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email