Zizaco/factory-muff — pull request #3 by pete-otaqui (2013-04-29 13:16:19+00:00)
Title: Add SaveException when model saving fails

particularly useful when using model validation as with Ardent.

Currently there is no indication whatsoever that the models created by FactoryMuff failed to be saved, which makes for no-fun-whatsoever.

For example, I was using FactoryMuff to test a Confide user system, and the creation of Users with Factory Muff was silently failing because my factory rules did not account for the "confirmation" required on the password field.

I appreciate this specific example may be something to do with me getting the factory rules wrong, or not knowing how to mimic the "confirmation" directive in Ardent, but in any case I think this would be a very useful feature, since I believe it's safe to assume you really do want all models created with Factory Muff to successfully save.