开发者

RSpec install error: "Could not find autotest in any of your source paths"

When I run:

rails generate rspec:install

I g开发者_高级运维et this output:

   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

I'm new to RSpec, Rails and Ruby. Any tips on how to make this work?


It's a bug. It can be circumvented:

"A quick solution for those with this problem is to make the missing directory in the gem. (i.e., mkdir rspec-rails-2.3.0/lib/generators/rspec/install/templates/autotest )"

Ref: https://github.com/rspec/rspec-rails/issues/closed#issue/283


I had the same problem the other day. The only thing that solved it was to uninstall the autotest and rspec gems and re-install them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜