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!
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!