Hi Kristian,
Thanks for the pointers, but I want a simpler solution than transforming
gems in jars and using Maven for dealing with dependencies.
I would prefer to deal with Bundler, which I consider more solid than
Maven, as I'll want to update Capybara and Rspec at some point, and that
would be simpler to achieve with Bundler...
Thanks,
Rodrigo.
Em 02-10-2011 15:24, kristian escreveu:
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