[rspec-users] Spec::Rails, "model.should have(1).error_on(:attribute)"

David Chelimsky dchelimsky at gmail.com
Wed Mar 25 16:30:55 EDT 2009


On Mar 25, 2009, at 1:37 PM, Phor Gruber <lists at ruby-forum.com> wrote:

> I added:
>  - validates_presence_of :attribute
>
> To my model.
>
> The test now passes.

Congrats! It took longer than it usually does, but you just  
experienced the red and green parts of the red/green/refactor cycle.

Cheers,
David

>
>
> yay!!
>
> Thanks David.
>
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list