mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Bring random_email and random description from spree_core factories
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
require 'ffaker'
|
||||
|
||||
FactoryBot.define do
|
||||
sequence(:random_description) { Faker::Lorem.paragraphs(1 + Kernel.rand(5)).join("\n") }
|
||||
sequence(:random_email) { Faker::Internet.email }
|
||||
|
||||
factory :classification, class: Spree::Classification do
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user