summaryrefslogtreecommitdiff
path: root/spec/factories/product_review.rb
blob: 543eda3aa350f90041a76817f4fafdd50aa8121f (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

FactoryBot.define do
  factory :product_review, class: 'ProductReview' do
    user_account { create(:user_account) }
    product { create(:product) }
    review { Faker::Lorem.paragraph }
    rating { rand(1..5) }
  end
end