Ruby on rails RSpec安装错误:";在任何源路径中都找不到“自动测试”;

Ruby on rails RSpec安装错误:";在任何源路径中都找不到“自动测试”;,ruby-on-rails,rspec,installation,Ruby On Rails,Rspec,Installation,当我跑步时: rails generate rspec:install 我得到这个输出: identical .rspec exist spec identical spec/spec_helper.rb Could not find "autotest" in any of your source paths. Your current source paths are: (..)/rails_projects/sample_app/lib/template

当我跑步时:

rails generate rspec:install
我得到这个输出:

   identical  .rspec
       exist  spec
   identical  spec/spec_helper.rb
Could not find "autotest" in any of your source paths. Your current source paths are: 
(..)/rails_projects/sample_app/lib/templates/rspec/install
(..)/rspec-rails-2.3.0/lib/generators/rspec/install/templates

我是RSpec、Rails和Ruby的新手。关于如何使这项工作有效,有什么建议吗?

前几天我也遇到了同样的问题。解决这个问题的唯一办法是卸载autotest和rspec gems并重新安装它们

这是一个错误。可以通过以下方式规避:

对于有此问题的用户,一个快速解决方案是在gem中创建丢失的目录。(即mkdir rspec-rails-2.3.0/lib/generators/rspec/install/templates/autotest)

参考: