On Sep 26, 2008, at 6:18 pm, Mark Wilden wrote:

As part of the TDD process, I spec all attributes, but this doesn't seem universal. Is this a misconception? Do people actually make sure that all columns exist and can be written to and read from?

What I meant by this was that say you have classes...

Animal {weight, height, dob}
Pet < Animal {name}
ZooAnimal < Animal {cage_id}

then, using ActiveRecord, all three will have attributes {weight, height, dob, name, cage_id}. If you don't want your pets in a cage, it's worth preventing that and writing specs for it.

That's what I was getting at, really - the extra data corruption issues.

Ashley




--
http://www.patchspace.co.uk/
http://aviewfromafar.net/

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to