RailsCasts Pro episodes are now free!

Learn more or hide this

William H. Harle Jr.'s Profile

GitHub User: wharle90

Site: railsallover.com

Comments by William H. Harle Jr.


Has anyone used Minitest to test associations in their models? I can't seem to find any examples of this kind of testing. I used to use rspec and shoulda and do something like this in my model test:

it { should have_many(:products).through(:buying_guides_products) }

how would I go about testing something like this with minitest (preferably mintiest::spec if you're using that) Thanks for any help!