From: Phlip Date: 2008-08-05T11:43:36+09:00 Subject: Re: unit testing advice David A. Black wrote: > Couldn't you just write a #valid? method for the class, or something > like that? Obviously yes but why should we have to? validates_presence_of :foo only needs to peek at self.foo, so why should we have to rewrite it? I'm not talking about the advanced stuff like :scope => ... -- Phlip