mirror of
https://github.com/docusealco/docuseal
synced 2026-11-12 07:42:32 -05:00
add base feature specs
This commit is contained in:
1 parent
6b4e7c2264
commit
cbc6f4497a
32 files changed
+1134
-12
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user