mirror of https://github.com/docusealco/docuseal
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.
15 lines
380 B
15 lines
380 B
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :submission do
|
|
template
|
|
created_by_user factory: %i[user]
|
|
|
|
before(:create) do |submission, _|
|
|
submission.template_fields = submission.template.fields
|
|
submission.template_schema = submission.template.schema
|
|
submission.template_submitters = submission.template.submitters
|
|
end
|
|
end
|
|
end
|