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'" from there.
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?
Since I don't actually need those specs to be bundled in the war because
they will only be used in my development machine, I probably don't need
to install bundle dependencies in some specific place, so this could be
simpler for this case...
I'm just wondering if this works out nicely, maybe I could start using
some other gems alongside my Grails application... In that case, I would
need to bundle my Ruby dependencies inside the war...
Any ideas will be greatly appreciated.
And no, I'm not doing this for fun. I really intend to use Capybara in
my production app and I really don't like the available test frameworks
for Grails... And yes, I'll still going to use Grails for a long time, I
guess...
Thanks,
Rodrigo.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email