[rspec-users] Rspec approach to test model

Joaquin Rivera Padron joahking at gmail.com
Thu Feb 12 05:12:46 EST 2009


kaleem,
method new does not run your model validations, neither does your provided
activate! implementation.
but save indeed does.
my guess is your mixing several contexts (cases, situations) in your single
spec. Try decoupling all with more granular examples and you'll get to save
shore :-)
cheers,
joaquin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090212/b9cc952d/attachment.html>


More information about the rspec-users mailing list