Ruby on Rails Thursday, March 29, 2012

Carlos,

I love the way you are testing this. I have a question tho. When I tried
implementing something similar in my tests, it doesn't seem to be
running the validations I set in the def validate function of my model.
Can you think of any reason why this might be happening or how I should
alternatively test to make sure it includes the validations in validate?

Also, do you test associations with minitest? An example of that would
be incredibly helpful as well.

Thanks for any help!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment