Use InMemoryTest. See 
http://mortslikeus.blogspot.com/2009/07/activerecord-beta-1-released.html

On Oct 17, 9: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to