mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
generate unique uuids for cloned templates
This commit is contained in:
1 parent
8898dcc054
commit
baaf1f510f
6 files changed
+176
-28
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :template_folder do
|
||||
account
|
||||
|
||||
author factory: %i[user]
|
||||
name { Faker::Book.title }
|
||||
|
||||
trait :with_templates do
|
||||
after(:create) do |template_folder|
|
||||
create_list(:template, 2, folder: template_folder, account: template_folder.account)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user