summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/product.rb1
-rw-r--r--spec/factories/product_review.rb2
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