summaryrefslogtreecommitdiff
path: root/spec/factories/product_review.rb
blob: b9778bd7a6ba5cd7da8b5bfab9a7d61612787fc1 (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.paragraphs }
    rating { rand(1..5) }
  end
end