From 72ccdfdf9bbea6269bc1a28199373abd5e8ce302 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 4 Apr 2023 19:53:27 -0600 Subject: AƱade specs de ReviewsController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/factories/product.rb | 1 + spec/factories/product_review.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/factories') 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 -- cgit v1.2.3