Re: [rspec-users] autospec fails but rake spec tasks pass (solution)

2009-03-29 Thread jakepaul
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,

[rspec-users] autospec fails but rake spec tasks pass

2009-03-29 Thread jakepaul
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