mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
88d7429041
2. fixes gem dependencies issues 3. fixes failing migrations 4. updates depricated factory_girl => factory_bot and fixes related issues Signed-off-by: zmagod <zmago_devetak@yahoo.com>
10 lines
254 B
Ruby
10 lines
254 B
Ruby
FactoryBot.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
|