If you use Autotest with Ruby on Rails, be sure to gem install autotest-rails when you upgrade to ZenTest-4.1.0.

Without that gem, when you run the autospec command that ships with RSpec, Autotest won’t won’t have any way of knowing it’s in a Rails app and it will load up rspec’s autotest/rspec.rb instead of rspec-railsautotest/rails_rspec.rb.

Even if you’re not using RSpec, you’ll get ZenTest’s autotest/autotest.rb instead of autotest/rails.rb when you run the autotest command.

The next release of rspec-rails will include a patch to resolve this for RSpec users, but in the mean time (and for everybody else), just gem install autotest-rails and resume your regularly scheduled continuous testing.

4 Responses to “Upgrading to ZenTest 4.1.0”

  1. JRice Says:

    …Errr… autotest-rails gets grumpy if you have ZenTest-4.1.1 installed.

    FWIW.

  2. JRice Says:

    Sorry, ignore that. It was totally redgreen getting grumpy, I’m just not awake enough. ;)

  3. Daniel De Aguiar Says:

    Thanks David, this solved my issues.

  4. Frank Says:

    I’m not too sure why, but mine is still looping when i have red code. Posting what I think is relevant.

    autotest-fsevent (0.1.3) autotest-growl (0.1.7) autotest-rails (4.1.0) cucumber (0.6.1) cucumber-rails (0.2.3, 0.2.2, 0.2.1) rcov (0.9.7.1, 0.9.6) redgreen (1.2.2) rspec (1.3.0) rspec-rails (1.3.2) thoughtbot-factory_girl (1.2.2) webrat (0.6.0) ZenTest (4.2.1)

Leave a Reply