[rspec-users] validate_presence_of
Tim Glen
tim at pivotib.com
Tue Feb 17 19:42:07 EST 2009
> 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>
Hi Yi,
I believe you're looking for validate_presence_of - you missed an "i"
in validate
More information about the rspec-users
mailing list