blob: 00a8f6cc3e9754091f5814ac6cb7a6780e9ff8a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe ProductCart, type: :model do
let(:product_cart) { create(:product_cart) }
it 'should belong to product' do
expect(product_cart).to respond_to(:product)
end
it 'should belong to cart' do
expect(product_cart).to respond_to(:cart)
end
end
|