mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
12 lines
371 B
Ruby
12 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :my_module do
|
|
sequence(:name) { |n| "Task-#{n}" }
|
|
x { Faker::Number.between(1, 100) }
|
|
y { Faker::Number.between(1, 100) }
|
|
workflow_order { MyModule.where(experiment_id: experiment.id).count + 1 }
|
|
experiment
|
|
my_module_group { create :my_module_group, experiment: experiment }
|
|
end
|
|
end
|