[rspec-users] validate_presence_of

Yi Wen hayafirst at gmail.com
Tue Feb 17 19:25:00 EST 2009


Sorry for the spam, I relized there was a typo. It should be
       it {should validate_presence_of(:login)}
It still didn't work

On Tue, Feb 17, 2009 at 6:04 PM, Yi Wen <hayafirst at gmail.com> 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
>
> with rspec 1.1.12
>
> But I got:
>
> NO NAME
> undefined method `valdate_presence_of' for
> #<Spec::Rails::Example::ModelExampleGroup::Subclass_1:0x2513298>
>
> What did I do it wrong? Thanks for helping.
>
> Yi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090217/95d4e6df/attachment.html>


More information about the rspec-users mailing list