Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

When I run:

rails generate rspec:install

I get 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?

like image 723
Vinicius Pinto Avatar asked Dec 26 '10 23:12

Vinicius Pinto


1 Answers

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

like image 124
Magne Avatar answered Oct 25 '22 06:10

Magne