Em 02-10-2011 12:23, Stephen Bannasch escreveu:
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.
Hi Stephen,
At this point, I'm not concerned with using Capybara outside an Rails
application. I've already done that. I'm more concerned about how to
support gems inside a Java war. Maybe there's already some recommended
approach besides what I'm planning to do.
Thanks,
Rodrigo.