shoulda

tests for model associations

it { should belong_to(:restaurant) }
it { should have_many(:post_comments) }
it { have_and_belong_to_many have_many(:post_tags) }

Reference

results matching ""

    No results matching ""