mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
10 lines
255 B
Ruby
10 lines
255 B
Ruby
FactoryGirl.define do
|
|
factory :my_module do
|
|
name 'My first module'
|
|
x 0
|
|
y 0
|
|
workflow_order 0
|
|
experiment { Experiment.first || create(:experiment_one) }
|
|
my_module_group { MyModuleGroup.first || create(:my_module_group) }
|
|
end
|
|
end
|