IN one of my unit tests I get an ActiveRecord::StaleObjectError:
Attempted to update a stale object
in object I have apart from other stuff an after_save method, which
If I remove that line from my code my tests succeeds.
Unfortunetly, I do not understand why an update_attributes call can
generate an StaleObjectError.
Maybe anybody can explain this to me?
Thanks a lot in advance.