views:

188

answers:

2

I installed the autotest gem and intend to use it with rspec. The problem is, when I run autotest under my rails app, all I see is :

railsapp$ autospec

loading autotest/rails_rspec


And its stuck there until I Ctrl-C out of it. Nothing changes even if I change a rspec test or code.

Here's my ~/.autotest

require "autotest/restart"

require 'redgreen/autotest'

require 'autotest/fsevent'

require "autotest/growl"

+1  A: 

I had the same problem. I was eventually able to get everything working by making sure I was on the latest (beta, if necessary) versions of rspec, rspec-rails, autotest, and autotest-rails, and putting the following in autotest/discovery.rb:

Autotest.add_discovery { "rails" }
Autotest.add_discovery { "rspec2" }

Here's the blog post that got me started in the right direction.

John Hyland
A: 

Cd into app directory and run the command: AUTOFEATURE=true autospec

To stop this process ^C twice

Reuben Peter-Paul