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.

8 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)

  5. lobular breast cancer Says:

    This is a really good read for me. Must admit that you are one of the coolest bloggers I ever saw. Thanks for posting this informative article.

  6. registering a trademark Says:

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely useful for me.

  7. fibre optic christmas trees Says:

    Only want to say your article is as tonishing. The clearness in your post is simply spectacular and i can take for granted you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with succeeding post. Thanks a million and please keep up the ac complished work.

  8. palliative chemotherapy Says:

    What I wouldnt give to have a debate with you about this.  You just say so many things that come from nowhere that Im pretty sure Id have a fair shot.  Your blog is great visually, I mean people wont be bored.  But others who can see past the videos and the layout wont be so impressed with your generic understanding of this topic.

Leave a Reply