diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-04 19:53:27 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-04 19:53:27 -0600 |
commit | 72ccdfdf9bbea6269bc1a28199373abd5e8ce302 (patch) | |
tree | df69179a101d71e9fe8ae22753c3bb7a95f8e5e7 /spec/factories | |
parent | db9b4b712271a67e60e6c0bf58c9ce510f177682 (diff) |
Añade specs de ReviewsController
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/product.rb | 1 | ||||
-rw-r--r-- | spec/factories/product_review.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/product.rb b/spec/factories/product.rb index fb64d0d..8f643a6 100644 --- a/spec/factories/product.rb +++ b/spec/factories/product.rb @@ -14,5 +14,6 @@ FactoryBot.define do end c end + public_id { SecureRandom.hex(12) } end end diff --git a/spec/factories/product_review.rb b/spec/factories/product_review.rb index b9778bd..543eda3 100644 --- a/spec/factories/product_review.rb +++ b/spec/factories/product_review.rb @@ -4,7 +4,7 @@ FactoryBot.define do factory :product_review, class: 'ProductReview' do user_account { create(:user_account) } product { create(:product) } - review { Faker::Lorem.paragraphs } + review { Faker::Lorem.paragraph } rating { rand(1..5) } end end |