Em Saturday 24 November 2007 20:57:46 Yuen Ho Wong escreveu: > code to figure the whole thing out. Can I lobby for more unit test > recipes and howtos doc? How do you guys test your models with SA and > Elixir BTW?
Of course you can! And now that you have it working, it would be nice if you could write a recipe on our Wiki (or here and someone will take care of posting on the wiki, if you can't get access to it). With regards to how tests on the model are done it depends on several things, specially if auto loading is or isn't being used. If I'm creating the database on the model, I check the SQL generated on the first time and at every modification I do to it. There's almost nothing to be tested besides if the "rule" I wrote on the model is what I wanted it to be on the database. I have tons of logic inside the database (triggers, views, rules, stored procedures, functions, etc.) and this is where my database logic is. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

