On Wed, Feb 18, 2009 at 9:45 PM, Pat Maddox <pat.mad...@gmail.com> wrote: > On Wed, Feb 18, 2009 at 7:42 PM, Mark Wilden <m...@mwilden.com> wrote: >> On Wed, Feb 18, 2009 at 4:39 PM, Fernando Perez <li...@ruby-forum.com> wrote: >>>> >>>> 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? >> >> To make sure you wrote that line of code. > > and how do you make sure you wrote this one? > it {should valdate_presence_of(:login)}
By removing the line from the model, running the specs, and looking for a failiure :) > > :) > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users