I can’t figure out what is causing this problem. I’m using the latest
and rspec-rails gems on rails 2.3.2.
When I run autospec, the tests in the model spec that I am editing will
fail. The error messages are like this:
ActiveRecord::RecordInvalid in ‘Job new record should create a new
given valid attributes’
(Nothing after Validation Failed:, just blank). It doesn’t matter what
attributes I pass to create the new model, and it doesn’t matter if I do
using a regular create! method or using Machinist, the same error
Now, if I make a change, autospec will run the specs from that one model
spec again, and they will all pass. Then it runs all of my specs again
that’s when the specific spec I’m editing fails (only when it runs all
specs). When I run rake spec:models or rake spec:controllers, everything
passes as it should. So I figured it might have something to do with the
controller specs, and if I remove those, autospec passes again. Then if
put the controller specs back, autospec still passes. It only starts
if I again edit the model specs.
This is happening in multiple models, not just one. It’s making it
impossible to work with, so I’d really appreciate any thoughts you might
have. Thank you!
View this message in context:
Sent from the rspec-users mailing list archive at Nabble.com.