On Wed, Feb 18, 2009 at 4:39 PM, Fernando Perez <li...@ruby-forum.com> wrote: > Yi Wen wrote: >> Hello, >> >> according to this post: >> http://blog.davidchelimsky.net/2009/1/13/rspec-1-1-12-is-released >> >> I should be able to write: >> >> describe User do >> it {should valdate_presence_of(:login)} >> end > > What's the point in testing validates_presence_of for a model? It's > already tested in the framework, and so readable that a quick glance on > the model says it all. I would only test it if I added some bizarre > behavior with procs and so on. > > What's the community's position about that? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
I'm with you, but there's nothing even *close* to consensus on this. A lot of people liken it to double-entry bookkeeping. Pat _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users