J'ai rencontré cette erreur en essayant la section tutoriel de ruby on rails avec rspec sur une plateforme Windows en utilisant jruby 1.6 :
c:\rails_projects\sample_app>bundle exec rspec spec/
org/jruby/RubyKernel.java:1038:in `require': no such file to load -- spec_helper
(LoadError)
from c:/rails_projects/sample_app/spec/controllers/pages_controller_spec .rb:1:in `(root)'
from org/jruby/RubyKernel.java:1063:in `load'
from c:/rails_projects/sample_app/spec/controllers/pages_controller_spec
.rb:386:in `load_spec_files'
from org/jruby/RubyArray.java:2458:in `collect'
from c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspe
c/core/configuration.rb:386:in `load_spec_files'
from c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspe
c/core/command_line.rb:18:in `run'
from c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspe
c/core/runner.rb:55:in `run_in_process'
from c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspe
c/core/runner.rb:46:in `run'
from c:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/rspec-core-2.5.1/lib/rspe
c/core/runner.rb:10:in `autorun'
from org/jruby/RubyProc.java:268:in `call'
from org/jruby/RubyProc.java:232:in `call'
J'ai trouvé la réponse qui semble manquer dans le tutoriel :
c : \rails_projects\sample_app >rails generate rspec:install