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/.
An example of an association test would still be crazy helpful tho.
Here's what I used to do with spec and shoulda:
it { should have_many(:products).through(:buying_guides_products) }
Any ideas?