I've been playing with rvm these days and I had a bad surprise today.

$ rvm install jruby
$ rvm jruby
$ rake test

failed...

Of course you didn't understand. I didn't explain yet...

I've written a Rakefile following RSpec homepage instructions and adding some options to ruby (namely "--ng", for working with nailgun support). But the error seems to be related to gems access. If I run the RSpec command from a terminal where I executed "rvm jruby", it works. In another terminal it won't work.

I'm testing a Java Maven project with JRuby and RSpec. It was working prior to rvm use. But calling the "ruby" executable using the full path, as RSpec tasks does, doesn't seem to suffice. "rvm jruby" probably sets up a proper environment that is not reproduced by RSpec when calling the configured ruby interpreter.

Of course I could contact the RVM developers about this, but I would like to understand first why RSpec needs to spawn a separate process in its task... Does anyone here knows the reason?

Thanks in advance...

Rodrigo.

__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to