On Mon, Jul 12, 2010 at 23:23, Marnen Laibow-Koser <[email protected]> wrote:
> Fearless Fool wrote:

>> But then how do I run unit tests while preserving my carefully preloaded
>> data?
>
> You don't.  Good test isolation *requires* clearing the database for
> every test.

Good ideal to strive for... but not absolutely necessary all the time.
 99% of the time, whether in testing Rails apps or anything else,
wisdom lies in knowing where to draw the line... and it's rarely all
the way to one side or the other.

-Dave, foolish about many things, but at least possessed of this one
nugget of wisdom  :-)

-- 
Specialization is for insects. | Professional: http://davearonson.com
-Robert Anson Heinlein         | Programming:  http://codosaur.us
-------------------------------+ Leadership:   http://dare2xl.com
Have Pun, Will Babble!  -me    | Et Cetera:    http://davearonson.net

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to