Robert Pankowecki wrote:
> On Oct 10, 7:29�am, Marnen Laibow-Koser <[email protected]> wrote:
>> No. �Even dictionaries should not be seeded in test. �Just use factories
>> to create only the actual records needed for each individual test.
> 
> I can't agree. Try to convince me. Having all the dictionaries seeded
> once at the start makes my tests shorter and faster.

It does not make them faster, because you're loading lots of unnecessary 
records.

Anyway, who cares who fast your tests are if they're wrong?  You can't 
know that you're actually testing what you think you are, unless you 
start each test from a blank slate and create only a restricted set of 
records (generally no more than 10 if your tests are of the proper 
granularity).  Preloading the DB is cheating at solitaire.

> 
> Robert Pankowecki

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone
-- 
Posted via http://www.ruby-forum.com/.

-- 
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