You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/spec/factories/template_folders.rb

17 lines
348 B

# 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