diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-01 12:00:33 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-01 12:00:33 -0600 |
commit | 753bf8499ba5d8815db8d08a1dcf69caa20660cf (patch) | |
tree | c758e18e3009f9c6da002164686e88956430847b /spec/factories | |
parent | 64214e370778dc3efdaca85acd0cd7a569a79b81 (diff) |
Mejora estructura del proyecto
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/product_review.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/product_review.rb b/spec/factories/product_review.rb new file mode 100644 index 0000000..b9778bd --- /dev/null +++ b/spec/factories/product_review.rb @@ -0,0 +1,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 |