As far as I know, all callbacks and the save is run inside a transaction, so if saving fails for the user, the person won't be save. I still had the issue that just calling user.valid? would create a record in the database when not expected. I did switch to calling new instead of create and all my tests about it are passing.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_XagD0hIQ5UJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

