I figured out what the problem was. Turns out that the controller specs used
Mocha's any_instance method to stub valid? and return false (I got this idea
from a Railscast). Due to the order in which autospec runs the specs,
editing the model spec was causing it to be run after the controller spec,
I can't figure out what is causing this problem. I'm using the latest rspec
and rspec-rails gems on rails 2.3.2.
When I run autospec, the tests in the model spec that I am editing will all
fail. The error messages are like this:
ActiveRecord::RecordInvalid in 'Job new record should create a new