On 9 Oct 2008, at 08:52, Francis Fish wrote:
> Rpec would check that delete_all was being called, but not catch > that it was the wrong method to use in these circumstances - an > exception from a constraint would show up straight away. This is a problem caused by the ActiveRecord pattern, which mixes business logic and persistence. If these were separated it'd be much easier to spec the two independently. DataMapper sadly (and ironically, given its name) is no better in this regard. My current app is using DataMapper in a limited sense, and I have a mixture of database-free and SQLite :memory: backed specs to try and reach a compromise. But I'm still not happy with the situation. Ashley -- http://www.patchspace.co.uk/ http://aviewfromafar.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" 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/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
