You could also create a test database and run your tests on that. SetUp and TearDown methods will make sure you don't leave data in the database.
Srdjan On Oct 17, 8:23 pm, Mike Christensen <[email protected]> wrote: > When writing unit tests for code that uses ActiveRecord, I want to be > able to call stuff like "Save()" and "Create()" without actually > touching the DB (I just want to no-op).. Is there an easy way to run > AR in "test mode" or do I have to abstract all the calls that actually > touch the DB. Thanks! > > Mike --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
