mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
18 lines
444 B
Ruby
18 lines
444 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :form_response do
|
|
association :form
|
|
association :created_by, factory: :user
|
|
association :step_orderable_element, factory: :step_orderable_element
|
|
association :parent, factory: :step
|
|
|
|
status { :pending }
|
|
|
|
trait :submitted do
|
|
status { :submitted }
|
|
association :submitted_by, factory: :user
|
|
submitted_at { DateTime.current }
|
|
end
|
|
end
|
|
end
|