add base feature specs

This commit is contained in:
Alex Turchyn committed 2023-08-20 15:15:48 +03:00
1 parent 6b4e7c2264
commit cbc6f4497a
32 files changed
+1134 -12

No files matched your search

+14
View File
@@ -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