[rspec-users] RSpec tasks, JRuby and rvm

Alexey Petrushin lists at ruby-forum.com
Fri Oct 15 07:38:32 EDT 2010

The same problem, can't use 'rake spec', here's quick workaround, use

rake spec:isolated

namespace :spec do
  desc "Run RSpec code exapmples in isolated mode (every spec file in 
different Ruby process)"
  task :isolated do
    Dir.glob("spec/**/[^_]*_spec.rb").each do |spec_file|
      Kernel.system "rspec #{spec_file}"

it's terribly slow, btw :)

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list