[rspec-users] validate_presence_of

David Chelimsky dchelimsky at gmail.com
Wed Feb 18 22:43:38 EST 2009


On Wed, Feb 18, 2009 at 9:42 PM, Mark Wilden <mark at mwilden.com> wrote:
> On Wed, Feb 18, 2009 at 4:39 PM, Fernando Perez <lists at 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.

Close.

To make sure you "will" write that line of code.

>
> ///ark
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list