mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
17 lines
355 B
Ruby
17 lines
355 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :template_folder do
|
|
account
|
|
|
|
author factory: %i[user]
|
|
name { Faker::Book.unique.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
|