encontramos con este error al probar el rubí en los carriles sección de tutoriales con rspec en una plataforma Windows usando jruby 1.6:en 'require': No existe el fichero a cargar - spec_helper
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'
encontrado la respuesta que parece que falta en el tutorial:
c: \ rails_projects \ sample_app> raíles generan rspec: instalar
¿Qué tutorial de Ruby on Rails? –
@RyanBigg probablemente [esto] (http://ruby.railstutorial.org/chapters/static-pages#top) – Uko
No falta en el tutorial. El comando en cuestión aparece en la introducción al Capítulo 3. (Confía en mí, lo sé, lo escribí. :-) – mhartl