1 2 3 4 5 6
require 'rails_helper' RSpec.describe ProductCart, type: :model do it { should belong_to(:product) } it { should belong_to(:cart) } end